Fwd: cis194 hw7 question - getting example to work

(sorry if dup. I sent first before confirming my subscription)
From the homework description I've tried running:
dlee@morty ~/repos/cis194/week7 $ runhaskell StringBufEditor.hs Editor.hs:11:8: 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. Is my haskell install messed up? Have the libraries changed since the homework was created? Thanks, dustin -- Dustin Lee qhfgva=rot13(dustin)

Hi Dustin,
perhaps you're missing mtl. (There are also C.M.Trans.State in
transformers, though IIRC you have to use lift there to access the methods
in your monad stack.)
On Jan 5, 2015 9:28 PM, "Dustin Lee"
(sorry if dup. I sent first before confirming my subscription)
From the homework description I've tried running:
dlee@morty ~/repos/cis194/week7 $ runhaskell StringBufEditor.hs
Editor.hs:11:8: 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.
Is my haskell install messed up? Have the libraries changed since the homework was created?
Thanks,
dustin
-- Dustin Lee qhfgva=rot13(dustin)
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Thanks for the reply. What's the simplest path to getting this? I'm not
very familiar with haskell tools, library management. I'm using ubuntu if
that helps
On Mon, Jan 5, 2015 at 2:25 PM, Carl Eyeinsky
Hi Dustin,
perhaps you're missing mtl. (There are also C.M.Trans.State in transformers, though IIRC you have to use lift there to access the methods in your monad stack.) On Jan 5, 2015 9:28 PM, "Dustin Lee"
wrote: (sorry if dup. I sent first before confirming my subscription)
From the homework description I've tried running:
dlee@morty ~/repos/cis194/week7 $ runhaskell StringBufEditor.hs
Editor.hs:11:8: 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.
Is my haskell install messed up? Have the libraries changed since the homework was created?
Thanks,
dustin
-- Dustin Lee qhfgva=rot13(dustin)
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Dustin Lee qhfgva=rot13(dustin)

On Mon, Jan 5, 2015 at 3:28 PM, Dustin Lee
Is my haskell install messed up? Have the libraries changed since the homework was created?
It sounds like you have a minimal ghc installation. Many things were shifted from ghc's minimal install to the Haskell Platform. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

You can see examples of how to use Cabal and sandboxes to install packages
like mtl in an article I wrote for HowIStart:
http://howistart.org/posts/haskell/1
People are getting steered toward minimal GHC installs on purpose. New
people have to learn how to install packages anyway. You just have to show
them and then they can handle it fine.
--- Chris Allen
On Mon, Jan 5, 2015 at 3:28 PM, Brandon Allbery
On Mon, Jan 5, 2015 at 3:28 PM, Dustin Lee
wrote: Is my haskell install messed up? Have the libraries changed since the homework was created?
It sounds like you have a minimal ghc installation. Many things were shifted from ghc's minimal install to the Haskell Platform.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hmmm... wasn't able to use cabal: (note I use tsocks regularly to get
around our firewall)
sudo tsocks cabal update
Downloading the latest package list from hackage.haskell.org
Warning: http error: Network.Browser.request: Error raised ErrorClosed
cabal: Network.Browser.request: Error raised ErrorClosed
But I was able to install using:
sudo tsocks apt-get install libghc-ghc-mtl-dev
I guess I'll practice using cabal at home...
On Mon, Jan 5, 2015 at 2:30 PM, Christopher Allen
You can see examples of how to use Cabal and sandboxes to install packages like mtl in an article I wrote for HowIStart:
http://howistart.org/posts/haskell/1
People are getting steered toward minimal GHC installs on purpose. New people have to learn how to install packages anyway. You just have to show them and then they can handle it fine.
--- Chris Allen
On Mon, Jan 5, 2015 at 3:28 PM, Brandon Allbery
wrote: On Mon, Jan 5, 2015 at 3:28 PM, Dustin Lee
wrote: Is my haskell install messed up? Have the libraries changed since the homework was created?
It sounds like you have a minimal ghc installation. Many things were shifted from ghc's minimal install to the Haskell Platform.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Dustin Lee qhfgva=rot13(dustin)
participants (4)
-
Brandon Allbery
-
Carl Eyeinsky
-
Christopher Allen
-
Dustin Lee