[Haskell-cafe] Automatic derivation (TemplateHaskell?)

Joel Reymont joelr1 at gmail.com
Thu Apr 5 07:46:58 EDT 2007


Following tells me that Data.Derive.Peephole was built.

ar t dist/build/libHSderive-0.1.a says Derive.o is there.

ghc-pkg -l
/opt/local/lib/ghc-6.6/package.conf:
     Cabal-1.1.6, FilePath-0.11, GLUT-2.0, HUnit-1.1, OpenGL-2.1,
     QuickCheck-1.0, base-2.0, cgi-2006.9.6, derive-0.1, fgl-5.2,
     (ghc-6.6), haskell-src-1.0, haskell98-1.0, html-1.0, mtl-1.0,
     network-2.0, parsec-2.0, readline-1.0, regex-base-0.71,
     regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0,
     template-haskell-2.0, time-1.0, unix-1.0, xhtml-2006.9.13

derive-1.0 is in the list of packages.

ghc --make FunParser.hs

FunParser.hs:4:7:
     Could not find module `Data.Derive.Peephole':
       Use -v to see a list of the files searched for.

I'm baffled again.

---
runhaskell Setup.hs build
Preprocessing library derive-0.1...
Preprocessing executables for derive-0.1...
Building derive-0.1...
[1 of 9] Compiling Data.Derive.FixedPpr ( Data/Derive/FixedPpr.hs,  
dist/build/Data/Derive/FixedPpr.o )
[2 of 9] Compiling Data.Derive      ( Data/Derive.hs, dist/build/Data/ 
Derive.o )
[3 of 9] Compiling Data.Derive.SYB  ( Data/Derive/SYB.hs, dist/build/ 
Data/Derive/SYB.o )
[4 of 9] Compiling Data.Derive.TH   ( Data/Derive/TH.hs, dist/build/ 
Data/Derive/TH.o )
[5 of 9] Compiling Data.Derive.BinaryDefer ( Data/Derive/ 
BinaryDefer.hs, dist/build/Data/Derive/BinaryDefer.o )
[6 of 9] Compiling Data.Derive.Eq   ( Data/Derive/Eq.hs, dist/build/ 
Data/Derive/Eq.o )
[7 of 9] Compiling Data.Derive.Peephole ( Data/Derive/Peephole.hs,  
dist/build/Data/Derive/Peephole.o )
[8 of 9] Compiling Data.Derive.Binary ( Data/Derive/Binary.hs, dist/ 
build/Data/Derive/Binary.o )
[9 of 9] Compiling Data.Derive.Play ( Data/Derive/Play.hs, dist/build/ 
Data/Derive/Play.o )
ar: creating archive dist/build/libHSderive-0.1.a
[1 of 1] Compiling Main             ( Derive.hs, dist/build/derive/ 
derive-tmp/Main.o )
Linking dist/build/derive/derive ...

sudo runhaskell Setup.hs install
Installing: /usr/local/lib/derive-0.1/ghc-6.6 & /usr/local/bin  
derive-0.1...
Registering derive-0.1...
Reading package info from ".installed-pkg-config" ... done.
Saving old package config file... done.
Writing new package config file... done.


--
http://wagerlabs.com/







More information about the Haskell-Cafe mailing list