ChrisPenner / rasa

Extremely modular text editor built in Haskell
GNU General Public License v3.0
616 stars 42 forks source link

Compile errors in recent rasa release(s) #50

Closed hvr closed 7 years ago

hvr commented 7 years ago

I noticed that recent rasa versions run into compile failures, see e.g. http://104.239.175.197:8080/package/rasa


Configuring component lib from rasa-0.1.11...
Preprocessing library rasa-0.1.11...
[ 1 of 10] Compiling Rasa.Internal.Text ( src/Rasa/Internal/Text.hs, /tmp/matrix-worker/1489684526/dist-newstyle/build/x86_64-linux/ghc-8.0.2/rasa-0.1.11/build/Rasa/Internal/Text.o )
[ 2 of 10] Compiling Rasa.Internal.Range ( src/Rasa/Internal/Range.hs, /tmp/matrix-worker/1489684526/dist-newstyle/build/x86_64-linux/ghc-8.0.2/rasa-0.1.11/build/Rasa/Internal/Range.o )
[ 3 of 10] Compiling Rasa.Internal.Buffer ( src/Rasa/Internal/Buffer.hs, /tmp/matrix-worker/1489684526/dist-newstyle/build/x86_64-linux/ghc-8.0.2/rasa-0.1.11/build/Rasa/Internal/Buffer.o )

src/Rasa/Internal/Buffer.hs:82:36: error:
    • No instance for (Show Eve.Internal.States.StateWrapper)
        arising from a use of ‘show’
    • In the first argument of ‘(<$>)’, namely ‘show’
      In the second argument of ‘($)’, namely
        ‘show <$> b ^. states . to M.toList’
      In the expression:
        intercalate "\n" $ show <$> b ^. states . to M.toList

The following error is simply because older GHC versions' lexer have problems when a line starts (without any preceding whitespace) with the #-} end marker.

src/Rasa/Internal/ActionMonads.hs:5:5:
    Cannot parse LANGUAGE pragma
    Expecting comma-separated list of language options,
    each starting with a capital letter
      E.g. {-# LANGUAGE TemplateHaskell, GADTs #-}
ChrisPenner commented 7 years ago

Thanks for pointing this out. I had specified a specific version of a package in my stack.yaml, but didn't add it to the cabal file.

I've pushed a new version of rasa to hackage which (hopefully) solves that issue. Is there a place where I can see these build matrices for my packages in general? Or perhaps even where I can get email notifications about it?