fimad / scalpel

A high level web scraping library for Haskell.
Apache License 2.0
323 stars 43 forks source link

Compilation on GHC newer than 9.4.x fails due to missing MonadFix #105

Closed liamzee closed 10 months ago

liamzee commented 11 months ago

Failed to build scalpel-core-0.6.2.1. Build log ( /home/debian/.cabal/logs/ghc-9.6.3/scalpel-core-0.6.2.1-f4e9b4545e3d0a8e0d35c60c914b1093e4d237e544e1a402b4219084cc132e76.log ): Configuring library for scalpel-core-0.6.2.1.. Preprocessing library for scalpel-core-0.6.2.1.. Building library for scalpel-core-0.6.2.1.. [1 of 7] Compiling Text.HTML.Scalpel.Internal.Select.Types ( src/Text/HTML/Scalpel/Internal/Select/Types.hs, dist/build/Text/HTML/Scalpel/Internal/Select/Types.o, dist/build/Text/HTML/Scalpel/Internal/Select/Types.dyn_o ) [2 of 7] Compiling Text.HTML.Scalpel.Internal.Select.Combinators ( src/Text/HTML/Scalpel/Internal/Select/Combinators.hs, dist/build/Text/HTML/Scalpel/Internal/Select/Combinators.o, dist/build/Text/HTML/Scalpel/Internal/Select/Combinators.dyn_o ) [3 of 7] Compiling Text.HTML.Scalpel.Internal.Select ( src/Text/HTML/Scalpel/Internal/Select.hs, dist/build/Text/HTML/Scalpel/Internal/Select.o, dist/build/Text/HTML/Scalpel/Internal/Select.dyn_o )

src/Text/HTML/Scalpel/Internal/Select.hs:16:29: warning: [-Wunused-imports] The import of ‘<$>’ from module ‘Control.Applicative’ is redundant | 16 | import Control.Applicative ((<$>), (<|>)) | ^^^^^ [4 of 7] Compiling Text.HTML.Scalpel.Internal.Scrape ( src/Text/HTML/Scalpel/Internal/Scrape.hs, dist/build/Text/HTML/Scalpel/Internal/Scrape.o, dist/build/Text/HTML/Scalpel/Internal/Scrape.dyn_o )

src/Text/HTML/Scalpel/Internal/Scrape.hs:50:68: error: [GHC-76037] Not in scope: type constructor or class ‘MonadFix’ Suggested fix: Perhaps use ‘MonadFail’ (imported from Control.Monad) | 50 | deriving (Functor, Applicative, Alternative, Monad, MonadPlus, MonadFix, | ^^^^^^^^ Error: cabal: Failed to build scalpel-core-0.6.2.1 (which is required by exe:scraperprototype from scraperprototype-0.1.0.0). See the build log above for details.


Hope we're not in the same situation as Monomer, since in about 6 months, 9.4.x will be obsolete. :(

fimad commented 11 months ago

This should be fixed in version 0.6.2.2, can you try that version?

fimad commented 10 months ago

Verified in CI now that stackage support GHC 9.6.

Closing for now. If you are able to reproduce issues on 0.6.2.2 please re-open this issue.