[Haskell-cafe] "Casting" newtype to base type?

Ozgur Akgun ozgurakgun at gmail.com
Sat Jul 6 11:00:49 CEST 2013


Hi Vlatko.

On 2 July 2013 16:03, Vlatko Basic <vlatko.basic at gmail.com> wrote:

> Is there a nicer way to extract the 'IO String' from 'IOS',
> without 'case' or without pattern matching the whole 'P'?
>

You might enjoy the newtype package.

http://hackage.haskell.org/package/newtype

Hope this helps,
Ozgur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130706/e468577e/attachment.htm>


More information about the Haskell-Cafe mailing list