[Haskell-fr] premier essai avec Parsec

Marc Chantreux khatar at phear.org
Tue Aug 10 10:02:21 EDT 2010


Bonjour a tous,

Je me suis lancé dans le tuto de DAAN LEIJEN sur parsec il y a qq temps.
Je voulais passer a l'experimentation mais je n'arrive pas a compiler
mon code.

J'ai tenté toutes les variantes de lancement de ghc fournies dans la le
tuto a coup de 

ghc -lparsec -Lparsec, 
ghc --package Parsec,
...

rien ne fait ... en simplifiant, voila ce que je tente: 

> cabal install 'parsec >= 3' 
Resolving dependencies...
No packages to be installed. All the requested packages are already
installed.
If you want to reinstall anyway then use the --reinstall flag.

> cat > a.hs 
import Parsec                    
main = print "do" 

> ghc -v !$ 

Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2 booted by GHC version 6.8.2
Using package config file: /usr/local/stow/ghc-6.10.4/lib/ghc-6.10.4/./package.conf
Using package config file: /home/mc/.ghc/i386-linux-6.10.4/package.conf
hiding package base-3.0.3.1 to avoid conflict with later version base-4.1.0.0
hiding package Cabal-1.6.0.3 to avoid conflict with later version Cabal-1.8.0.6
hiding package network-2.2.1.2 to avoid conflict with later version network-2.2.1.4
hiding package QuickCheck-1.2.0.0 to avoid conflict with later version QuickCheck-2.1.0.2
hiding package parsec-2.1.0.1 to avoid conflict with later version parsec-3.1.0
hiding package regex-base-0.72.0.2 to avoid conflict with later version regex-base-0.93.1
hiding package time-1.1.2.4 to avoid conflict with later version time-1.1.4
hiding package vty-3.1.8.4 to avoid conflict with later version vty-4.0.0.1
hiding package happstack-util-0.3.2 to avoid conflict with later version happstack-util-0.4.1
hiding package happstack-data-0.3.3 to avoid conflict with later version happstack-data-0.4.1
hiding package happstack-ixset-0.3.2 to avoid conflict with later version happstack-ixset-0.4.1
hiding package happstack-server-0.3.3 to avoid conflict with later version happstack-server-0.4.1
hiding package happstack-state-0.3.4 to avoid conflict with later version happstack-state-0.4.1
hiding package happstack-0.3.2 to avoid conflict with later version happstack-0.4.1
hiding package xml-1.3.4 to avoid conflict with later version xml-1.3.5
hiding package pandoc-1.5.1 to avoid conflict with later version pandoc-1.5.1.1
wired-in package ghc-prim mapped to ghc-prim-0.1.0.0
wired-in package integer mapped to integer-0.1.0.1
wired-in package base mapped to base-4.1.0.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0.1.0
wired-in package syb mapped to syb-0.1.0.1
wired-in package template-haskell mapped to template-haskell-2.3.0.1
wired-in package dph-seq mapped to dph-seq-0.3
wired-in package dph-par mapped to dph-par-0.3
Hsc static flags: -static
Created temporary directory: /tmp/ghc31931_0
*** Checking old interface for main:Main:
*** Parser:
*** Renamer/typechecker:

a.hs:1:0:
    Failed to load interface for `Parsec':
      locations searched:
        Parsec.hi
        Parsec.hi-boot
*** Deleting temp files:
Deleting: /tmp/ghc31931_0/ghc31931_0.s
Warning: deleting non-existent /tmp/ghc31931_0/ghc31931_0.s
*** Deleting temp dirs:
Deleting: /tmp/ghc31931_0

si qq1 peut voler a mon secours ? 

cordialement
marc 


More information about the Haskell-fr mailing list