Hello!
I’m trying to build the same version of the Haskell program in Linux Ubuntu and macOS Monterey (M1) but facing a strange issue.
CMode From module System.Posix.Types have different signatures.
– mac
System.Posix.Types> :t CMode
CMode :: Word16 -> CMode
–ubantu
System.Posix.Types> :t CMode
CMode :: Word32 -> CMode
both has same stack resolver: lts-17.12
same ghc version 8.10.4
Identical Stack dependencies List
using same version of base 4.14.1.0
in documentation CMode has Word32 Signature
but somehow on mac CMode has different Signature
CMode :: Word16 → CMode
Please suggest what I’m doing wrong, if possible provide detailed solution.
Thanks