SerTH for Data.Map

Bulat Ziganshin bulatz at
Tue Feb 7 11:50:49 EST 2006

Hello Arie,

Tuesday, February 07, 2006, 7:01:31 PM, you wrote:

>> $(deriveSerializable ''Map)

AP> , which gave
AP> "Exception when trying to run compile-time code:
AP>       ./Codec/Serialize/SerTH/BSerDerive.hs:(56,0)-(57,98): Non-exhaustive
AP> patterns in function sdef".

it works ok for me. ghc 6.4.1/mingw32,

cmdline: "ghc -fth hello.hs --make -cpp"

contents of hello.hs:

import Codec.Serialize.SerTH
import Data.Dynamic
import Data.Typeable
import System.IO
import Data.Map
$(deriveSerializable ''Map)

btw, my Streams library include AltBinary part with TH-derived
instances. i will announce it in few days

Best regards,
 Bulat                            mailto:bulatz at

More information about the Libraries mailing list