On Mon, 2005-11-07 at 21:32 -0500, Sara Kenedy wrote:
> Dear all,
>
> I run file Token.hs in
> hugs98\libraries\Text\ParserCombinator\Parsec\Token.hs, but it
> displays this error
>
> ERROR : 64 - Syntax error in data type definition (unexpected '.')
>
> Anyone know how to fix this? Thanks.
The
On Nov 7, 2005, at 9:02 AM, Bulat Ziganshin wrote:
...Simon, can you please write some docs about all these foreign stuff
and their interaction with pure Haskell code? i see some bits of this
information in these newsgroups regularly (for example, are you
remember discussion about using lots of h
On 11/8/05, Jan-Willem Maessen <[EMAIL PROTECTED]> wrote:
> On Nov 7, 2005, at 9:02 AM, Bulat Ziganshin wrote:
> > ...Simon, can you please write some docs about all these foreign stuff
> > and their interaction with pure Haskell code? i see some bits of this
> > information in these newsgroups reg
Folks,
How do I fix this?
data Prop = forall a b.(Eq a, Show a) => Attr a := a
data Attr a = Attr String
(a -> Dynamic, Dynamic -> Maybe a)
(PU a)
type Props = M.Map String (Int, Prop)
instance Ord (Int, Prop) where
compare (a, _) (b, _)
| a == b = EQ
| a > b = GT
This gets me pretty close. I now have to figure out how to return a
PU Props instead of a PU [Prop] which is what it's returning. Still,
it's a huge step forward.
props :: Props -> PU Props
props m = props' $ sort $ M.toList m
where props' [] = lift []
props' ((_, (_, x)):xs) =
Joel Reymont wrote:
> Folks,
>
> How do I fix this?
>
> data Prop = forall a b.(Eq a, Show a) => Attr a := a
>
> data Attr a = Attr String
> (a -> Dynamic, Dynamic -> Maybe a)
> (PU a)
>
> type Props = M.Map String (Int, Prop)
>
> instance Ord (Int, Prop) where
> compare (a, _) (b,
The road to hell is paved with good intentions. I sold this to the
client as a "simple scripting language" and I have to deliver now,
lest I loose my credibility. This were working quite well ... except
the program is spending 50% of the time collecting garbage and is
shuffling a few Gb of
Greetings,
As you all might know, the Haskell community has it's own informal
magazine, The Monad.Reader (http://haskell.org/tmrwiki).
I'm planning to write (with some support from the frequent users of
#haskell @ irc.freenode.net) a series of articles for TMR,
which describe some aspect of Has
Folks,
How can I create a generic pickler that's parameterized on type and
constructor?
I define types like this:
newtype AvgPot = AvgPot Word64 deriving (Show, Typeable)
newtype NumberOfPlayers = NumberOfPlayers Word16 deriving (Show,
Typeable)
and then have a lot of boiler-plate code l