reanimate / reanimate-svg

BSD 3-Clause "New" or "Revised" License
4 stars 8 forks source link

Build error with GHC 8.2.2 #34

Open sjakobi opened 3 years ago

sjakobi commented 3 years ago

src/Graphics/SvgTree/CssTypes.hs:57:33: error:
    • Variable not in scope:
        (<>) :: TB.Builder -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
   |
57 |       OfClass c       -> si '.' <> ft c
   |                                 ^^

src/Graphics/SvgTree/CssTypes.hs:59:33: error:
    • Variable not in scope:
        (<>) :: TB.Builder -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
   |
59 |       OfId    i       -> si '#' <> ft i
   |                                 ^^

src/Graphics/SvgTree/CssTypes.hs:60:33: error:
    • Variable not in scope:
        (<>) :: TB.Builder -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
   |
60 |       OfPseudoClass c -> si '#' <> ft c
   |                                 ^^

src/Graphics/SvgTree/CssTypes.hs:102:18: error:
    • Variable not in scope: (<>) :: TB.Builder -> TB.Builder -> t3
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
102 |                  <> ft " {\n"
    |                  ^^

src/Graphics/SvgTree/CssTypes.hs:103:18: error:
    • Variable not in scope: (<>) :: t3 -> t1 -> t2
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
103 |                  <> mconcat (fmap tserializeDecl decl)
    |                  ^^

src/Graphics/SvgTree/CssTypes.hs:104:18: error:
    • Variable not in scope: (<>) :: t2 -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
104 |                  <> ft "}\n"
    |                  ^^

src/Graphics/SvgTree/CssTypes.hs:107:34: error:
    • Variable not in scope: (<>) :: TB.Builder -> TB.Builder -> t0
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
107 |       tserializeDecl d = ft "  " <> tserialize d <> ft ";\n"
    |                                  ^^

src/Graphics/SvgTree/CssTypes.hs:107:50: error:
    • Variable not in scope: (<>) :: t0 -> TB.Builder -> t
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
107 |       tserializeDecl d = ft "  " <> tserialize d <> ft ";\n"
    |                                                  ^^

src/Graphics/SvgTree/CssTypes.hs:243:29: error:
    • Variable not in scope: (<>) :: TB.Builder -> TB.Builder -> t4
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
243 |     CssString   s -> si '"' <> ft s <> si '"'
    |                             ^^

src/Graphics/SvgTree/CssTypes.hs:243:37: error:
    • Variable not in scope: (<>) :: t4 -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
243 |     CssString   s -> si '"' <> ft s <> si '"'
    |                                     ^^

src/Graphics/SvgTree/CssTypes.hs:244:30: error:
    • Variable not in scope:
        (<>) :: TB.Builder -> TB.Builder -> TB.Builder
    • Perhaps you meant one of these:
        ‘<$>’ (imported from Prelude), ‘*>’ (imported from Prelude),
        ‘<$’ (imported from Prelude)
    |
244 |     CssReference r -> si '#' <> ft r
    |                              ^^
cabal: Failed to build reanimate-svg-0.13.0.1

You should probably add a constraint base >= 4.11.

sjakobi commented 3 years ago

You should probably add a constraint base >= 4.11.

As a Hackage trustee, I have added this constraint to v0.11.0.0 and up. See e.g. https://hackage.haskell.org/package/reanimate-svg-0.13.0.1/revisions/.