Template Haskell crashes unexpectedly...
Bulat Ziganshin
bulat.ziganshin at gmail.com
Tue Aug 22 03:32:33 EDT 2006
Hello Brian,
Tuesday, August 22, 2006, 1:16:08 AM, you wrote:
> The solution seems to be something like:
> $(extend_data [d|
> data D = X {f::Int, g::String}
> |])
> $(extend_instance [d|
> instance Obj D where
> ...
> |])
or just
$(extend_data [d|
data D = X {f::Int, g::String}
instance Obj D where
...
|])
because [d| ... |] can include multiple declarations
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Glasgow-haskell-users
mailing list