Could Not Find Module Control Monad Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss haskell could not find module control monad state the workings and policies of this site About Us Learn more about
Haskell Cabal Install
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions haskell mtl Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Haskell Stack
Join them; it only takes a minute: Sign up Import monads doesnt work (leaking haskell platform) up vote 7 down vote favorite 4 As there is no haskell-plattform for the newest ubuntu 13.04, i only downloaded the ghci and had no problems until now. But now i want to work with monads and the import of them with import Control.Monad.State for example does not work. Error message: Could not find module `Control.Monad.State' Perhaps you meant Control.Monad.ST (from base) Control.Monad.ST.Safe (from base) Control.Monad.Fix (from base) Use -v to see a list of the files searched for. Failed, modules loaded: none. How can i manually download them, or is there maybe a whole different problem going on ? haskell import monads haskell-platform share|improve this question asked Nov 24 '13 at 17:25 user2664856 307721 add a comment| 1 Answer 1 active oldest votes up vote 12 down vote accepted You need to install the library somewhere GHC can find it. Installing via Cabal Install Cabal If you haven't installed cabal-install then do that first. Do this one of two ways. Via OS Packaging: sudo apt-get install cabal-install or manually: wget http://hackage.haskell.org/package/cabal-install-1.18.0.2/cabal-install-1.18.0.2.tar.gz tar xzf cabal-install-1.18.0.2.tar.gz cd cabal-install-1.18.0.2 sh ./bootstrap.sh export PATH=$PATH:$HOME/.cabal/bin Use Cabal Once you have installed cabal-install then do: cabal update cabal install mtl This is the "Monad Transformer Library" which includes many common monads, such as State, that you see used in examples. Instal
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community http://stackoverflow.com/questions/20177511/import-monads-doesnt-work-leaking-haskell-platform of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Installing Cabal has missing modules up vote 7 down vote favorite My ghc install was out of date so I decided to reinstall ghc and cabal to hopefully fix some problems. I started out following http://stackoverflow.com/questions/26271966/installing-cabal-has-missing-modules the steps here. GHC is now version 7.8.3. I then removed ~/.cabal and tried to install using the steps but it fails. So I removed .cabal again and tried the steps here but when I run sh bootstrap.sh it runs into missing modules: Using local tarball for parsec-3.1.6. [1 of 1] Compiling Main ( Setup.hs, Setup.o ) Linking Setup ... Configuring parsec-3.1.6... Building parsec-3.1.6... Preprocessing library parsec-3.1.6... Text/Parsec/Prim.hs:80:8: Could not find module ‘Control.Monad.Trans’ There are files missing in the ‘mtl-2.2.1’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. Text/Parsec/Prim.hs:81:8: Could not find module ‘Control.Monad.Identity’ There are files missing in the ‘mtl-2.2.1’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. Text/Parsec/Prim.hs:83:8: Could not find module ‘Control.Monad.Reader.Class’ There are files missing in the ‘mtl-2.2.1’ package, try running 'ghc-pkg check'. Use -v to see a list of the files searched for. Text/Parsec/Prim.hs:84:8: Could not find module ‘Control
by: [ date ] [ thread ] [ subject ] [ author ] Scotty 0.2.0 is quite old. Scotty 0.5.0 is out. Just try "cabal install scotty" On Tue, Oct 1, 2013 at 12:07 AM, Ovidiu https://www.haskell.org/pipermail/beginners/2013-October/012763.html D
van GoogleInloggenVerborgen veldenZoeken naar groepen of berichten