You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preprocessing library for sparse-linear-algebra-0.3.1..
Building library for sparse-linear-algebra-0.3.1..
[ 8 of 21] Compiling Data.Sparse.PPrint
/var/stackage/work/unpack-dir/unpacked/sparse-linear-algebra-0.3.1-65cfbadacf3cd4fdaa89f004cf8cd509e6563e71731fdb164a516f5cd8ddefda/src/Data/Sparse/PPrint.hs:60:29: error:
• Could not deduce (RealFloat a) arising from a use of ‘f’
from the context: (PrintfArg a, Epsilon a, Epsilon (Complex a),
Ord a)
bound by the type signature for:
printCN :: forall a.
(PrintfArg a, Epsilon a, Epsilon (Complex a), Ord a) =>
Int -> Int -> PPrintOptions -> [Complex a] -> String
at src/Data/Sparse/PPrint.hs:(58,1)-(59,57)
Possible fix:
add (RealFloat a) to the context of
the type signature for:
printCN :: forall a.
(PrintfArg a, Epsilon a, Epsilon (Complex a), Ord a) =>
Int -> Int -> PPrintOptions -> [Complex a] -> String
• In the third argument of ‘printNpad’, namely ‘f’
In the expression: printNpad l n f
In an equation for ‘printCN’:
printCN l n
= printNpad l n f
where
f o x
| nearZero (re x) && isNz (imagPart x)
= printf (prepD o (imagPart x) ++ "i") (aim x)
| nearZero (imagPart x) && isNz (re x)
= printf (prepD o (realPart x)) (re x)
| isNz x = printf (prepC o x) (re x) (aim x)
| otherwise = printf "_"
The text was updated successfully, but these errors were encountered:
Closed this in favor of ocramz/sparse-linear-algebra#79 - so no need to track this also on the stackage issue list. sparse-linear-algebra will semi-automatically be re-enabled once a compatible new version/revision appears on hackage - currently it is disabled by:
- sparse-linear-algebra < 0 # tried sparse-linear-algebra-0.3.1, but its *library* requires base >=4.7 && < 4.17 and the snapshot contains base-4.18.0.0
The text was updated successfully, but these errors were encountered: