awakesecurity / proto3-suite

Haskell Protobuf Implementation
https://hackage.haskell.org/package/proto3-suite
Other
81 stars 56 forks source link

Bring MonadIO into scope #233

Closed TristanCacqueray closed 1 year ago

TristanCacqueray commented 1 year ago

This change fixes the following failure with ghc-9.6.1:

proto3-suite> src/Proto3/Suite/DotProto/Internal.hs:83:13: error: [GHC-76037]
proto3-suite>     Not in scope: type constructor or class ‘MonadIO’
proto3-suite>     Suggested fixes:
proto3-suite>       • Perhaps use one of these:
proto3-suite>           ‘Turtle.MonadIO’ (imported from Turtle),
proto3-suite>           ‘Monad’ (imported from Prelude)
proto3-suite>       • Perhaps you want to add ‘MonadIO’ to the import list
proto3-suite>         in the import of ‘Turtle’
proto3-suite>         (src/Proto3/Suite/DotProto/Internal.hs:(46,1)-(47,50)).
proto3-suite>    |
proto3-suite> 83 | dieLines :: MonadIO m => Text -> m a
proto3-suite>    |             ^^^^^^^
TristanCacqueray commented 1 year ago

Not sure what's the actual issue, but this change enables building the library on ghc-9.6.1