The library circle-packing compiles with haste. But it yiels wrong results in haste. Take this test case (test.hs):
{-# LANGUAGE CPP #-}
module Main where
import Optimisation.CirclePacking
#ifdef __HASTE__
import Haste
#endif
main = do
let packed = packCircles id [4,4,4]
#ifdef __HASTE__
writeLog $ show packed
#else
putStrLn $ show packed
#endif
The library circle-packing compiles with haste. But it yiels wrong results in haste. Take this test case (
test.hs
):I get
but clearly wrong results with haste: