turingjump / bookkeeper

BSD 3-Clause "New" or "Revised" License
55 stars 17 forks source link

stack haddock doesnt work #5

Closed Gurkenglas closed 8 years ago

Gurkenglas commented 8 years ago

Gurkenglas@Gurkenglas-PC MINGW64 ~/bookkeeper $ stack haddock bookkeeper-0.2.0.0: configure Configuring bookkeeper-0.2.0.0... bookkeeper-0.2.0.0: build Preprocessing library bookkeeper-0.2.0.0... Preprocessing executable 'readme' for bookkeeper-0.2.0.0... [1 of 1] Compiling Main ( exec\Readme.lhs, .stack-work\dist\b7fec021\build\readme\readme-tmp\Main.o )

C:\Users\GURKEN~1\AppData\Local\Temp\ghc39552_0\ghc_1.lpp:1:1: error: The IO action main' is not defined in moduleMain'

-- While building package bookkeeper-0.2.0.0 using: C:\Users\Gurkenglas\AppData\Roaming\stack\setup-exe-cache\x86_64-windows\setup-Simple-Cabal-1.24.0.0-ghc-8.0.1.exe --builddir=.stack-work\dist\b7fec021 build lib:bookkeeper exe:readme --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1

jkarni commented 8 years ago

Interesting. Can you try with the latest master (or with the newly-uploaded 0.2.1.0)? It may have been an issue with using soft symlinks.

Gurkenglas commented 8 years ago

Works.

Gurkenglas@Gurkenglas-PC MINGW64 ~/bookkeeper
$ git pull
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 12 (delta 8), reused 9 (delta 5), pack-reused 0
Entpacke Objekte: 100% (12/12), Fertig.
Von https://github.com/turingjump/bookkeeper
   d34074c..bb6b425  master     -> origin/master
 * [neues Tag]       0.2.1.1    -> 0.2.1.1
 * [neues Tag]       0.2.1.0    -> 0.2.1.0
Aktualisiere d34074c..bb6b425
Fast-forward
 CHANGELOG.md     |  3 +++
 bookkeeper.cabal |  6 +++++-
 exec/Readme.lhs  | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 package.yaml     |  6 +++++-
 4 files changed, 67 insertions(+), 3 deletions(-)
 mode change 120000 => 100644 exec/Readme.lhs

Gurkenglas@Gurkenglas-PC MINGW64 ~/bookkeeper
$ stack haddock
bookkeeper-0.2.1.1: configure
Configuring bookkeeper-0.2.1.1...
bookkeeper-0.2.1.1: build
Preprocessing library bookkeeper-0.2.1.1...
[1 of 3] Compiling Bookkeeper.Internal.Errors ( src\Bookkeeper\Internal\Errors.h                                                                                                                                                                                               s, .stack-work\dist\b7fec021\build\Bookkeeper\Internal\Errors.o )
[2 of 3] Compiling Bookkeeper.Internal ( src\Bookkeeper\Internal.hs, .stack-work                                                                                                                                                                                               \dist\b7fec021\build\Bookkeeper\Internal.o )
[3 of 3] Compiling Bookkeeper       ( src\Bookkeeper.hs, .stack-work\dist\b7fec0                                                                                                                                                                                               21\build\Bookkeeper.o )
Preprocessing executable 'readme' for bookkeeper-0.2.1.1...
[1 of 1] Compiling Main             ( exec\Readme.lhs, .stack-work\dist\b7fec021                                                                                                                                                                                               \build\readme\readme-tmp\Main.o )
Linking .stack-work\dist\b7fec021\build\readme\readme.exe ...
bookkeeper-0.2.1.1: haddock
Running Haddock for bookkeeper-0.2.1.1...
Preprocessing library bookkeeper-0.2.1.1...
Haddock coverage:
   0% (  0 /  3) in 'Bookkeeper.Internal.Errors'
  Missing documentation for:
    Module header
    Contains (src\Bookkeeper\Internal\Errors.hs:9)
    Contains' (src\Bookkeeper\Internal\Errors.hs:11)
  64% ( 18 / 28) in 'Bookkeeper.Internal'
  Missing documentation for:
    Module header
    Book (src\Bookkeeper\Internal.hs:22)
     (src\Bookkeeper\Internal.hs:27)
    ShowHelper (src\Bookkeeper\Internal.hs:32)
     (src\Bookkeeper\Internal.hs:35)
     (src\Bookkeeper\Internal.hs:38)
     (src\Bookkeeper\Internal.hs:44)
     (src\Bookkeeper\Internal.hs:47)
     (src\Bookkeeper\Internal.hs:50)
     (src\Bookkeeper\Internal.hs:68)
  92% ( 23 / 25) in 'Bookkeeper'
  Missing documentation for:
    Module header
    Book (src\Bookkeeper\Internal.hs:22)
Warning: Bookkeeper.Internal.Errors: could not find link destinations for:
    ~
Warning: Bookkeeper.Internal: could not find link destinations for:
    ~
Warning: Bookkeeper: could not find link destinations for:
    ~
Documentation created:
.\.stack-work\dist\b7fec021\doc\html\bookkeeper\.\index.html,
.\.stack-work\dist\b7fec021\doc\html\bookkeeper\.\bookkeeper.txt
Preprocessing executable 'readme' for bookkeeper-0.2.1.1...
bookkeeper-0.2.1.1: copy/register
Installing library in
C:\msys64\home\Gurkenglas\bookkeeper\.stack-work\install\706c7801\lib\x86_64-windows-ghc-8.0.1\bookkeeper-0.2.1.1-5Sicdyk7YwF5Ry2DA8ELWM
Installing executable(s) in
C:\msys64\home\Gurkenglas\bookkeeper\.stack-work\install\706c7801\bin
Registering bookkeeper-0.2.1.1...
Updating Haddock index for local packages in
C:\msys64\home\Gurkenglas\bookkeeper\.stack-work\install\706c7801\doc\index.html
Updating Haddock index for local packages and dependencies in
C:\msys64\home\Gurkenglas\bookkeeper\.stack-work\install\706c7801\doc\all\index.html
Updating Haddock index for snapshot packages in
C:\Users\Gurkenglas\AppData\Roaming\stack\snapshots\d114e2e9\doc\index.html

Gurkenglas@Gurkenglas-PC MINGW64 ~/bookkeeper
$