Yep, that was it. Thanks, Li-yao!
-db
> On Aug 20, 2017, at 12:29 AM, Li-yao Xia wrote:
>
> Hi David,
>
> mkShow is probably making two separate declarations for "show" ([FunD "show"
> _, FunD "show" _]) instead of one declaration with two clauses ([FunD "show"
> [Clause
Hi David,
mkShow is probably making two separate declarations for "show" ([FunD
"show" _, FunD "show" _]) instead of one declaration with two clauses
([FunD "show" [Clause ..., Clause ...]]).
Both pretty-print to the same text, but only the second one is actually
valid. When there is only one
Hi all,
Does anyone know why this code:
module Language.P4.UtilTest where
import Language.P4.Util (mkShow)
data Dummy = BogusChar
| Nonsense Int
$(mkShow ''Dummy)
is producing this error:
Davids-Air-2:P4 dbanas$ stack ghc -- UtilTest.hs -ddump-splices
[1 of 1] Compiling