Coder Social home page Coder Social logo

Comments (3)

snoyberg avatar snoyberg commented on July 22, 2024

I think parsec version 2 is not providing the Applicative instance for Parser. I can't test this theory currently, though, since Hackage is down. If you feel like getting your hands dirty with the code, try replacing:

derefSingle <* delim

with

derefSingle >>= \x -> delim >> return x

And see if that solves the problem. If so, I'll release a patch.

from shakespeare.

ferriswheel avatar ferriswheel commented on July 22, 2024

hello,

here is the result

$  cabal install 
Resolving dependencies...
Configuring shakespeare-1.0.1...
Building shakespeare-1.0.1...
Preprocessing library shakespeare-1.0.1...
[1 of 2] Compiling Text.Shakespeare.Base ( Text/Shakespeare/Base.hs, dist/build/Text/Shakespeare/Base.o )

Text/Shakespeare/Base.hs:38:1:
    Warning: The import of `Control.Applicative' is redundant
               except perhaps to import instances from `Control.Applicative'
             To import instances alone, use: import Control.Applicative()

Text/Shakespeare/Base.hs:115:45:
    Warning: This binding for `x' shadows the existing binding
               bound at Text/Shakespeare/Base.hs:112:16
[2 of 2] Compiling Text.Shakespeare ( Text/Shakespeare.hs, dist/build/Text/Shakespeare.o )
Registering shakespeare-1.0.1...
Installing library in /home/john/.cabal/lib/shakespeare-1.0.1/ghc-7.4.1
Registering shakespeare-1.0.1...

from shakespeare.

snoyberg avatar snoyberg commented on July 22, 2024

Thanks for confirming the fix worked, I'll release a new version to Hackage once Hackage is working again.

from shakespeare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.