byteverse / scientific-notation

Numbers in Scientific Notation
Other
4 stars 2 forks source link

Support GHC-9.6.1 #6

Closed TristanCacqueray closed 1 year ago

TristanCacqueray commented 1 year ago

This PR fixes compilation failure with ghc-9.6.1

TristanCacqueray commented 1 year ago

Not sure what is the issue here, but this change makes the libraries build. Here is an example of the fixed failure:

scientific-notation> src/Data/Number/Scientific.hs:213:27: error: [GHC-83865]
scientific-notation>     • Couldn't match expected type ‘Exts.Int64#’
scientific-notation>                   with actual type ‘Int#’
scientific-notation>     • In the first argument of ‘I64#’, namely ‘i’
scientific-notation>       In the first argument of ‘Just’, namely ‘(I64# i)’
scientific-notation>       In the expression: Just (I64# i)
scientific-notation>     |
scientific-notation> 213 |   (# | i #) -> Just (I64# i)
scientific-notation>     |                           ^