[Haskell-beginners] strange error inside a case
PICCA Frederic-Emmanuel
frederic-emmanuel.picca at synchrotron-soleil.fr
Fri Nov 29 18:23:45 UTC 2019
> What is the type of hdf2mergedcbf' ?
hdf2mergedcbf' :: Path Abs File -> Int -> Int -> IO ()
> Does it work if you write `void (hdf2mergedcbf' (head masters) 1 1)` ?
nop
• In the expression: void (hdf2mergedcbf' (head masters) 1 1)
In a case alternative:
(SomeDataCollection SCollect SHdf5 _)
-> void (hdf2mergedcbf' (head masters) 1 1)
In the second argument of ‘($)’, namely
‘case col of {
(SomeDataCollection SCollect SHdf5 _)
-> void (hdf2mergedcbf' (head masters) 1 1) }’
|
184 | (SomeDataCollection SCollect SHdf5 _) -> void (hdf2mergedcbf' (head masters) 1 1)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
HsCompilation exited abnormally with code 1 at Fri Nov 29 19:23:04
More information about the Beginners
mailing list