agrafix / elm-bridge

Haskell: Derive Elm types from Haskell types
BSD 3-Clause "New" or "Revised" License
100 stars 27 forks source link

Test suite compilation failure #11

Closed snoyberg closed 8 years ago

snoyberg commented 8 years ago
[1 of 1] Compiling Main             ( test/EndToEnd.hs, dist/build/end-to-end-tests/end-to-end-tests-tmp/Main.o )

test/EndToEnd.hs:60:14:
    GHC stage restriction:
      ‘unwrapUnaryRecords’ is used in a top-level splice or annotation,
      and must be imported, not defined locally
    In the first argument of ‘deriveBoth’, namely
      ‘defaultOptions
         {allNullaryToStringTag = False, unwrapUnaryRecords = False}’
    In the expression:
      deriveBoth
        (defaultOptions
           {allNullaryToStringTag = False, unwrapUnaryRecords = False})
        ''Simple01

test/EndToEnd.hs:60:61:
    ‘unwrapUnaryRecords’ is not a (visible) constructor field name
bartavelle commented 8 years ago

Just added conditional compilation for supporting aeson 0.9 / 0.11 in tests. This probably warrants a new release ...

agrafix commented 8 years ago

Cool, thanks! Could you please bump the version in the cabal file?

bartavelle commented 8 years ago

Done.

agrafix commented 8 years ago

Thanks! Package should be up un hackage soon.

agrafix commented 8 years ago

Should be resolved @snoyberg