Open luckypoem opened 7 years ago
You should try to delete ~/.stack/snapshots
but in the end it is either a stack
bug or maybe you just need to install a dependency with apt-get, I just can't get which one. Perhaps you should try to change the verbosity of stack
during the installation to have a better message.
Delete the contents of ~/.stack/snapshots/,then it's ok
hi. actually there is still other issues.
root@AR:/usr/local/yblog# stack build yblog-1.0: build (exe) Preprocessing executable 'yblog' for yblog-1.0... [5 of 5] Compiling Main ( site.hs, .stack-work/dist/i386-linux/Cabal -1.24.0.0/build/yblog/yblog-tmp/Main.o )
/usr/local/yblog/site.hs:144:9: error:
Item String' with
[Char]'
Expected type: Compiler (Item String) -> Compiler (Compiler String)
Actual type: Compiler String -> Compiler (Compiler String)(>>=)', namely
applyFilter postFilters'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext'
/usr/local/yblog/site.hs:145:9: error:
Compiler String' with
Item String'
Expected type: Compiler String -> Compiler (Item String)
Actual type: Item String -> Compiler (Item String)(>>=)', namely
loadAndApplyTemplate "templates/default.html" yContext'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext = loadAndApplyTemplate "templates/boilerplate.html" yContext'
/usr/local/yblog/site.hs:157:9: error:
Item String' with
[Char]'
Expected type: Compiler (Item String) -> Compiler (Compiler String)
Actual type: Compiler String -> Compiler (Compiler String)(>>=)', namely
applyFilter postFilters'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext'
/usr/local/yblog/site.hs:158:9: error:
Compiler String' with
Item String'
Expected type: Compiler String -> Compiler (Item String)
Actual type: Item String -> Compiler (Item String)(>>=)', namely
loadAndApplyTemplate "templates/default.html" yContext'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/default.html" yContext = loadAndApplyTemplate "templates/boilerplate.html" yContext'
/usr/local/yblog/site.hs:176:9: error:
Item String' with
[Char]'
Expected type: Compiler (Item String) -> Compiler (Compiler String)
Actual type: Compiler String -> Compiler (Compiler String)(>>=)', namely
applyFilter postFilters'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
prefilteredText <- return
$ (fmap (preFilters (toFilePath identifier)) bo dy);
return $ renderPandoc prefilteredText }
= applyFilter postFilters' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; prefilteredText <- return $ (fmap (preFilters (toFilePath identifier)) bo dy); return $ renderPandoc prefilteredText } = applyFilter postFilters = saveSnapshot "content"'
/usr/local/yblog/site.hs:177:9: error:
Compiler String' with
Item String'
Expected type: Compiler String -> Compiler (Item String)
Actual type: Item String -> Compiler (Item String)(>>=)', namely
saveSnapshot "content"'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
prefilteredText <- return
$ (fmap (preFilters (toFilePath identifier)) bo dy);
return $ renderPandoc prefilteredText }
= applyFilter postFilters = saveSnapshot "content"' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; prefilteredText <- return $ (fmap (preFilters (toFilePath identifier)) bo dy); return $ renderPandoc prefilteredText } = applyFilter postFilters = saveSnapshot "content" = loadAndApplyTemplate "templates/post.html" yContext'
/usr/local/yblog/site.hs:191:9: error:
Item String' with
[Char]'
Expected type: Compiler (Item String) -> Compiler (Compiler String)
Actual type: Compiler String -> Compiler (Compiler String)(>>=)', namely
applyFilter postFilters'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/archive.html" archiveCtx'
/usr/local/yblog/site.hs:192:9: error:
Compiler String' with
Item String'
Expected type: Compiler String -> Compiler (Item String)
Actual type: Item String -> Compiler (Item String)(>>=)', namely
loadAndApplyTemplate "templates/archive.html" archiveCtx'
In the first argument of (>>=)', namely
do { body <- getResourceBody;
identifier <- getUnderlying;
return
$ renderPandoc (fmap (preFilters (toFilePath identifier)) body) }
= applyFilter postFilters = loadAndApplyTemplate "templates/archive.html" archiveCtx' In the first argument of
(>>=)', namely
do { body <- getResourceBody; identifier <- getUnderlying; return $ renderPandoc (fmap (preFilters (toFilePath identifier)) body) } = applyFilter postFilters = loadAndApplyTemplate "templates/archive.html" archiveCtx = loadAndApplyTemplate "templates/default.html" archiveCtx'
-- While building package yblog-1.0 using: /root/.stack/setup-exe-cache/i386-linux/Cabal-simple_mPHDZzAJ_1.24.0.0_ghc -8.0.1 --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 build exe:yblog --g hc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 root@AR:/usr/local/yblog#
how to fix them?? thank u very much.
This is very strange, I can compile on a Mac. Can you try to use:
stack --no-system-ghc build
If you encounter this kind of error again, it can be a nice bug use case for the stack team.
hi.
root@AR:/usr/local/yblog# stack build it shows: ... -- While building package wai-app-static-3.1.6.1 using: /root/.stack/setup-exe-cache/i386-linux/Cabal-simple_mPHDZzAJ_1.24.0.0_ghc-8.0.1 --builddir=.stack-work/dist/i386-linux/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: /usr/local/yblog/.stack-work/logs/wai-app-static-3.1.6.1.log
root@AR:/usr/local/yblog#
i ran "stack install wai-app-static",also i encounter the above error. how to fix it? thank u very much.