[Haskell-beginners] Parser using the show method

PICCA Frederic-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Fri Jun 21 12:37:37 UTC 2019


Hello

>    data SpaceGroup = P1 | P2 | P21 | C2 | P222
>                    deriving (Show, Read)
>
>    p = read <$> takeText

this is excalty what I wanted. In my case I use readMaybe.

Do you know if a version existe of readMaybe with Text instead of String


More information about the Beginners mailing list