[Haskell-fr] premier essai avec Parsec

David Virebayre dav.vire+haskell at gmail.com
Tue Aug 10 10:12:49 EDT 2010


Ne fais pas "import Parsec". A la place, fais

import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Char
import Text.ParserCombinators.Parsec.Combinator

Pour voir si ca marche:

david at pcdavid:~/code/edimail$ ghci
GHCi, version 6.12.3: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> import Parsec

<no location info>:
    Could not find module `Parsec':
      it is not a module in the current program, or in any known package.
Prelude> import Text.ParserCombinators.Parsec
Prelude Text.ParserCombinators.Parsec>


Pour compiler, ghc --make -O2 Tatata.hs

David.


More information about the Haskell-fr mailing list