Negative doubles or floats in Haskell (macports)

前端 未结 4 707
感情败类
感情败类 2020-12-21 01:28

Why do I get a segmentation fault when I try to show a negative double or float? There is no problem for negative integers.

Prelude> let a = 4
Prelude>         


        
4条回答
  •  [愿得一人]
    2020-12-21 01:58

    GHC on MacPorts seems to be broken. See https://trac.macports.org/ticket/25265

    Consider instead installing the Haskell Platform from haskell.org, which includes GHC 6.12.3 and a bundle of Haskelly goodies.

    • Info: http://hackage.haskell.org/platform/
    • Link: http://hackage.haskell.org/platform/mac.html

提交回复
热议问题