[Haskell-cafe] Re: overloaded list literals?
illissius at gmail.com
Mon Sep 6 15:08:37 EDT 2010
On Mon, Sep 6, 2010 at 8:52 PM, Maciej Piechotka <uzytkownik2 at gmail.com> wrote:
> data FooBar a = Foo
> | Bar
> deriving Show
> class IsString (FooBar Char) where
> toString _ = Foo
> class IsList FooBar where
> toList _ = Bar
> show ("1234" :: FooBar Char) == ???
Work is punishment for failing to procrastinate effectively.
More information about the Haskell-Cafe