haskell - How can packages be unhidden when using only stack? -


i'd try out writer monad in ghci. advised here, tried use stack manage ghc , packages, , avoid global installation.

from fresh ubuntu 15.04 install, after installing stack:

stack setup mkdir lyah && cd lyah stack new stack install mtl stack ghci ghci> import control.monad.writer not find module ‘control.monad.writer’ member of hidden package ‘mtl-2.1.3.1’. 

i understand pre-stack ghc-pkg used show/hide packages, i'm not sure how proceed here 'unhide' mtl package.

edit .cabal file stack new created , add mtl build-depends section. part of file should this:

build-depends:       base >= 4.7 && < 5                    , mtl 

then, stack build before stack ghci.

by way, not use stack install install libraries - merely shortcut copy binaries. e.g. stack install hlint first build package , copy resulting binary ~/.local/bin/. instead, add packages .cabal file, shown above, , use stack build installed.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -