newtype with `!'

1999-06-10 Thread S.D.Mechveliani
In ghc-4.02 -c newtype Vector a = Vec ![a] causes "ReadPrefix.lhs:745: Non-exhaustive patterns in case " Probably, it has rather tell that `!' is senseless under newtype. By the way, is it senseless there? -- Sergey Mechveliani [EMAIL PROTECTED]

RE: -fno-prune-tydecls -O

1999-06-10 Thread Simon Peyton-Jones
It will probably help performance to use (!). In GHC 4.03 (the one in the CVS tree right now), no-prune-tydecls has gone away. So just use -fno-prune-tydecls for now as much as necessary; you won't need it in the future. S -Original Message- From: [EMAIL PROTECTED] Sent: Thursday,

Compilation problem with ghc-4.03 win32

1999-06-10 Thread Meurig Sage
Using the new ghc-4.03 binary snapshot on Windows NT I get the following problem compiling a file. gcc -c tclhaskell.c ghc-4.03 -fglasgow-exts '-#include "tclhaskell.h"' -o main.exe Main.hs tclhaskell.o -ltcl80 -ltk80 tclhaskell.o(.text+0x69):tclhaskell.c: undefined reference to `_impure_ptr'

-fno-prune-tydecls -O

1999-06-10 Thread S.D.Mechveliani
For data OSet a = OSet {osetSample :: !a, membership :: !(Char - a - Bool), osetCard:: !(InfUnn Z), osetPointed :: !(MMaybe a), osetList:: !(Maybe [a]), osetBounds :: !(MMaybe a,MMaybe a,MMaybe a,MMaybe a),