Commit f1c0d2c
committed
fix: permit newlines between banInstance calls
Prior to this, the following code compiled
```
$(banInstance [t|forall currency. LActSg (Discrete currency) (Sum Integer)|] "(Sum 0 <> Sum 1) <>$ Discrete 1 /= Sum 0 <>$ (Sum 1 <>$ Discrete 1)")
$(banInstance [t|forall currency. RActSg (Discrete currency) (Sum Integer)|] "Discrete 1 $<> (Sum 0 <> Sum 1) /= (Discrete 1 $<> Sum 0) $<> Sum 1")
```
but the following produced a type error
```
$(banInstance [t|forall currency. LActSg (Discrete currency) (Sum Integer)|] "(Sum 0 <> Sum 1) <>$ Discrete 1 /= Sum 0 <>$ (Sum 1 <>$ Discrete 1)")
$(banInstance [t|forall currency. RActSg (Discrete currency) (Sum Integer)|] "Discrete 1 $<> (Sum 0 <> Sum 1) /= (Discrete 1 $<> Sum 0) $<> Sum 1")
```1 parent bc05530 commit f1c0d2c
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
67 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
| |||
0 commit comments