dacDave
dacDave

Reputation: 242

cabal could not find module snap.internal.http.server.exception

I have a Haskell desktop application that uses Snap. This application has been building for years now and is an everyday part of our fielded solution. I upgraded to a new development machine some months ago, running Windows 10 with version 7.10.3 of the GHC and 1.22.3.0 of the cabal library with 1.22.4.0 of cabal-install. I have installed version 0.9.8.0 of snap-core and version 0.9.5.1 of snap-server.

When I try and build my application in this environment, it get the following error:

Could not find module `Snap.Internal.Http.Server.Exception'
Perhaps you meant
  Snap.Internal.Http.Server.Backend
  Snap.Internal.Http.Server.Config
  Snap.Internal.Http.Server.Date

I cannot find this module in Hackage. Did something change in Snap since I last built this code? Please, any advice will be appreciated.

Dave

P.S. Here are links to the output of the ghc-pkg list command and to the cabal file for this project.

http://zelda.designacourse.com/dave/ghc-pkg_list.txt http://zelda.designacourse.com/dave/PreviewWrapper.cabal

Upvotes: 1

Views: 96

Answers (1)

dacDave
dacDave

Reputation: 242

With the help of, and gratitude to, epsilonhalbe we found a solution to this problem. I still do not know why the import of Snap.Internal.Http.Server.Exception started to throw an error from the compiler. However, removing that import and adding a type declaration to the variable now allows the code to build without error. i.e. catch ((_ :: IOException) -> return True).

Upvotes: 1

Related Questions