Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compile under snap >= 0.14 #18

Closed
adinapoli opened this issue Jun 15, 2015 · 4 comments
Closed

Make it compile under snap >= 0.14 #18

adinapoli opened this issue Jun 15, 2015 · 4 comments

Comments

@adinapoli
Copy link
Contributor

Hey Doug,

I have the suspect that this Snap commit, by removing re-exports, it's triggering this compilation error under GHC 7.8.4 and snap >= 0.14:

[1 of 1] Compiling Snap.Snaplet.AcidState ( src/Snap/Snaplet/AcidState.hs, dist/build/Snap/Snaplet/AcidState.o )

src/Snap/Snaplet/AcidState.hs:103:11: Not in scope: ‘liftIO’

src/Snap/Snaplet/AcidState.hs:127:48:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:129:30: Not in scope: ‘gets’

src/Snap/Snaplet/AcidState.hs:137:12:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:139:12:
    Not in scope: type constructor or class ‘MonadIO’
    Perhaps you meant ‘Monad’ (imported from Prelude)

src/Snap/Snaplet/AcidState.hs:143:5: Not in scope: ‘liftIO’

src/Snap/Snaplet/AcidState.hs:151:11:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:153:11:
    Not in scope: type constructor or class ‘MonadIO’
    Perhaps you meant ‘Monad’ (imported from Prelude)

src/Snap/Snaplet/AcidState.hs:157:5: Not in scope: ‘liftIO’

src/Snap/Snaplet/AcidState.hs:163:22:
    Not in scope: type constructor or class ‘MonadIO’
    Perhaps you meant ‘Monad’ (imported from Prelude)

src/Snap/Snaplet/AcidState.hs:165:22:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:170:5: Not in scope: ‘liftIO’

src/Snap/Snaplet/AcidState.hs:176:1:
    Duplicate type signatures for ‘createCheckpoint’
    at src/Snap/Snaplet/AcidState.hs:163:1-16
       src/Snap/Snaplet/AcidState.hs:176:1-16
rc/Snap/Snaplet/AcidState.hs:176:22:
    Not in scope: type constructor or class ‘MonadIO’
    Perhaps you meant ‘Monad’ (imported from Prelude)

src/Snap/Snaplet/AcidState.hs:178:22:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:181:1:
    Multiple declarations of ‘createCheckpoint’
    Declared at: src/Snap/Snaplet/AcidState.hs:168:1
                 src/Snap/Snaplet/AcidState.hs:181:1

src/Snap/Snaplet/AcidState.hs:183:5: Not in scope: ‘liftIO’

src/Snap/Snaplet/AcidState.hs:191:20:
    Not in scope: type constructor or class ‘MonadIO’
    Perhaps you meant ‘Monad’ (imported from Prelude)

src/Snap/Snaplet/AcidState.hs:193:20:
    Not in scope: type constructor or class ‘MonadState’
    Perhaps you meant ‘MonadSnap’ (imported from Snap)

src/Snap/Snaplet/AcidState.hs:198:5: Not in scope: ‘liftIO’
ghc --make: /Users/adinapoli/Library/Haskell/ghc-7.8.4/bin/ghc failure (return code=1)
cabal-1.22.0.1: Error: some packages failed to install:
snaplet-acid-state-0.2.6.1 failed during the building phase. The exception
was:
ExitFailure 1
cabal install: /usr/hs/tools/cabal-1.22.0.1 failure (return code=1)

What's the best course of action here?

Thanks!
Alfredo

@mightybyte
Copy link
Owner

I haven't been able to duplicate this. It builds fine for me on both 7.8 and 7.10.

@adinapoli
Copy link
Contributor Author

How weird, perhaps it's the particular package stack I'm using? Would posting it here clear the waters?

To be clear, to get this I had to manually relax the constrain in the cabal manifest to allow snap >= 0.14, but I assume you did that as well?

@mightybyte
Copy link
Owner

You must be running an old version.

http://hackage.haskell.org/package/snaplet-acid-state

@adinapoli
Copy link
Contributor Author

Totally plausible; I think I screwed up by forgetting to update the tip of my local fork to upstream, causing the accidental waste of your time (apologies).

Will confirm tonight & close this.

Alfredo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants