haddock

How to exclude dependencies when building haddocks?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 08:45:47
问题 Is there any way to build haddock docs for specific packages? I'm trying to build haddocks for my package/app alone, but the following command seems to be doing this for all dependencies, as well: stack haddock webservice (where webservice is the name of my package/app) 回答1: The flag you're looking for is --no-haddock-deps as in stack haddock --no-haddock-deps webservice 来源: https://stackoverflow.com/questions/50175379/how-to-exclude-dependencies-when-building-haddocks

How to exclude dependencies when building haddocks?

雨燕双飞 提交于 2019-12-05 18:02:26
Is there any way to build haddock docs for specific packages? I'm trying to build haddocks for my package/app alone, but the following command seems to be doing this for all dependencies, as well: stack haddock webservice (where webservice is the name of my package/app) The flag you're looking for is --no-haddock-deps as in stack haddock --no-haddock-deps webservice 来源: https://stackoverflow.com/questions/50175379/how-to-exclude-dependencies-when-building-haddocks

ghc-pkg check haddock warnings

时光毁灭记忆、已成空白 提交于 2019-12-05 04:54:31
Upon a fresh install of the haskell-platform (via homebrew ) ( GHC x64 7.6.3 ) on OSX 10.9.2 I receive the following warnings when I run ghc-pkg check (see below) Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html/ghc-mod.haddock doesn't exist or isn't a file Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html doesn't exist or isn't a directory Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html/hlint.haddock doesn't exist or isn't a file Warning: haddock-html:

What does * (star) or other kinds mean in an instance list of haddock

拈花ヽ惹草 提交于 2019-12-01 17:24:20
Browsing the haddocks of various packages I often come along instance documentations that look like this ( Control.Category ): Category k (Coercion k) Category * (->) or this ( Control.Monad.Trans.Identity ): MonadTrans (IdentityT *) What exactly here does the kind signature mean? It doesn't show up in the source, but I have already noticed that it seems to occur in modules that use the PolyKinds extension. I suspect it is probably like a TypeApplication but with a kind. So that e.g. the last example means that IdentityT is a monad transformer if it's first argument has kind * . So my

Enable --hyperlink-source for “cabal install”

心已入冬 提交于 2019-11-30 08:21:20
The command cabal haddock has very useful --hyperlink-source option. I would like to have the source hyperlinked when building documentation with cabal install . The ticket #517 seems to be just about it: http://hackage.haskell.org/trac/hackage/ticket/517 However, perhaps it is possible to set this flag via ~/.cabal/config file? If not, how can I get working cabal-install build with the patch from #517 without installing Cabal-1.9, which is currently mandatory (due to one patch from December)? Currently you cannot get the equivalent of the --hyperlink-source option when using the "all in one"

what is the meaning of “let x = x in x” and “data Float#” in GHC.Prim in Haskell

≯℡__Kan透↙ 提交于 2019-11-29 13:10:19
I looked at the module of GHC.Prim and found that it seems that all datas in GHC.Prim are defined as data Float# without something like =A|B , and all functions in GHC.Prim is defined as gtFloat# = let x = x in x . My question is whether these definations make sense and what they mean. I checked the header of GHC.Prim like below {- This is a generated file (generated by genprimopcode). It is not code to actually be used. Its only purpose is to be consumed by haddock. -} I guess it may have some relations with the questions and who could please explain that to me. It's magic :) These are the