byorgey / BlogLiterately

Command-line tool for formatting and publishing blog posts.
GNU General Public License v3.0
19 stars 4 forks source link

Compilation failure with GHC 7.10 #20

Closed snoyberg closed 9 years ago

snoyberg commented 9 years ago
Unpacking to BlogLiterately-0.7.1.8/
Resolving dependencies...
Configuring BlogLiterately-0.7.1.8...
Building BlogLiterately-0.7.1.8...
Preprocessing library BlogLiterately-0.7.1.8...
[ 1 of 12] Compiling Paths_BlogLiterately ( dist/build/autogen/Paths_BlogLiterately.hs, dist/build/Paths_BlogLiterately.o )
[ 2 of 12] Compiling Text.BlogLiterately.LaTeX ( src/Text/BlogLiterately/LaTeX.hs, dist/build/Text/BlogLiterately/LaTeX.o )
[ 3 of 12] Compiling Text.BlogLiterately.Block ( src/Text/BlogLiterately/Block.hs, dist/build/Text/BlogLiterately/Block.o )
[ 4 of 12] Compiling Text.BlogLiterately.Ghci ( src/Text/BlogLiterately/Ghci.hs, dist/build/Text/BlogLiterately/Ghci.o )
[ 5 of 12] Compiling Text.BlogLiterately.Highlight ( src/Text/BlogLiterately/Highlight.hs, dist/build/Text/BlogLiterately/Highlight.o )
[ 6 of 12] Compiling Text.BlogLiterately.Options ( src/Text/BlogLiterately/Options.hs, dist/build/Text/BlogLiterately/Options.o )
[ 7 of 12] Compiling Text.BlogLiterately.Image ( src/Text/BlogLiterately/Image.hs, dist/build/Text/BlogLiterately/Image.o )
[ 8 of 12] Compiling Text.BlogLiterately.Post ( src/Text/BlogLiterately/Post.hs, dist/build/Text/BlogLiterately/Post.o )
[ 9 of 12] Compiling Text.BlogLiterately.Options.Parse ( src/Text/BlogLiterately/Options/Parse.hs, dist/build/Text/BlogLiterately/Options/Parse.o )
[10 of 12] Compiling Text.BlogLiterately.Transform ( src/Text/BlogLiterately/Transform.hs, dist/build/Text/BlogLiterately/Transform.o )

src/Text/BlogLiterately/Transform.hs:198:5:
    Non type-variable argument
      in the constraint: Control.Lens.Tuple.Field1
                           s s BlogLiterately BlogLiterately
    (Use FlexibleContexts to permit this)
    When checking that ‘setTitle’ has the inferred type
      setTitle :: forall s (m :: * -> *).
                  (MonadState s m,
                   Control.Lens.Tuple.Field1 s s BlogLiterately BlogLiterately) =>
                  String -> m ()
    In an equation for ‘titleXF’:
        titleXF
          = Transform extractTitle (const True)
          where
              extractTitle
                = do { (Pandoc (Meta m) _) <- gets snd;
                       .... }
              setTitle s = _1 . title %= (`mplus` Just s)
byorgey commented 9 years ago

Ah, thanks, I hadn't tested on 7.10. I guess this is due to GHC getting stricter about extensions needed for inferred types. I'll have an updated version out soon.

byorgey commented 9 years ago

Uploaded BlogLiterately-0.7.1.9.