GHC 7.0.3(Ubuntu的repoes)中的一種GHC雜亂而編譯
SpecConstr
Function `$j_se6a{v} [lid]'
has one call pattern, but the limit is 0
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
編譯警告我做了我自己的數據類型產生,當我讓嚴格有這些警告,當它是懶人,沒有。儘管我測試了兩個版本的運行速度同樣快,但可能嚴格性過高。無論如何,這些警告嚴重嗎?
另請參見:[使用ghc編譯Haskell代碼時的專業化警告](http://stackoverflow.com/questions/5903563/warning-on-specialisations-when-compiling-haskell-code-with-ghc)。看起來像沒有人知道如何在不禁用所有警告的情況下關閉它們... – ehird 2011-12-21 17:45:54