mac10688
mac10688

Reputation: 2205

Swapping dependencies with Snap

I started working on a new snap barebones project with stack. When I stack init, it resolves to an older ghc compiler. When I upgraded the compiler, I got errors for the MonadCatchIO-transformer dependency. I went MonadCatchIO docs they say it is deprecated for exceptions library. So I replaced the dependency in my cabal file and was able to get my project to build and run hello world.

I want to know if I should expect errors later on in the Snap framework if/when I get more complex than a hello world project.

Why was MonadCatchIO-transformer part of the barebones template if it isn't necessary and several years obsolete.

Upvotes: 0

Views: 64

Answers (1)

mac10688
mac10688

Reputation: 2205

After going through the git repository for snap-templates, I found that the template file doesn't even reference a MonadCatchIO-transformers. It seems whatever I downloaded with cabal install snap-templates isn't the current source code.

I have asked them to update hackage in an issue request.

Upvotes: 0

Related Questions