[Haskell-beginners] Parsing a file

Roger Mason rmason at mun.ca
Thu Jan 27 12:25:02 UTC 2022


Hello David,

David McBride <toad3k at gmail.com> writes:

> These two pieces of code are not equivalent.
>
>   :{
>      input = do
>        eqatoms <- readFile "Parsing_File/eqatoms.out"
>        return eqatoms
>    :}
>
>    :{
>      main = do
>        eqatoms <- readFile "Parsing_File/eqatoms.out"
>        Parsec.parse species "test species" eqatoms
>      return
>    :}

Thank you for the help.  Now I understand better the error that I made.

Roger


More information about the Beginners mailing list