ghc
Using cabal with multiple GHC versions
I got both ghc6 and ghc7 on my desktop. To install new packages (for the specific ghc version), I use cabal with the flag --with-compiler=<ghc-dir> to specify开发者_C百科 for which ghc i want th[详细]
2023-04-12 21:27 分类:问答Space leak only in certain cases in GHC interpreter when doing: concat <some list> !! n
I define my own version of concat, myConcat: module Eh where myConcat []= [] myConcat ([]:os)= myConcat os[详细]
2023-04-11 16:26 分类:问答Compiling ghc with -fPIC support
I\'m trying to install GHC with -fPIC support in Fedora. I\'ve grabbed a source tarball since it seems no binary one has this.[详细]
2023-04-11 06:05 分类:问答Haskell 32-bit program freezes on a 64-bit Windows
I\'m using the GHC to build a haskell pogram for Windows with help of a speciefic (Haskell-)Libr开发者_Python百科ary which is called citeproc-hs. On a 32Bit-Windows XP machine the application works ju[详细]
2023-04-11 05:23 分类:问答Can compiler optimizations, like ghc -O2, change the order (time or storage) of a program?
I\'ve got the feeling that the answer is yes, and that\'s not restricted to Haskell.For example, tail-call optimization changes memory requirements from O(n) to O(l), right?[详细]
2023-04-10 12:48 分类:问答GHC/Haskell profiling: function consumes time without being called
I have compiled a Haskell program with GHC with enabled profiling. $ ./server +RTS -M6m -p -RTS I get a profile like:[详细]
2023-04-10 09:31 分类:问答Using the --reinstall flag with cabal-dev
I\'m working on the wxHaskell library, and wishing to keep my development work sepa开发者_如何学运维rate from the stable wxHaskell from hackage I\'m using cabal-dev in the following manner:[详细]
2023-04-05 05:57 分类:问答Partial memoization in Haskell
I\'m trying to find a good way to memoize a function for only part of its domain (non-negative integers) in Haskell, using Data.MemoCombinators.[详细]
2023-04-05 05:37 分类:问答How to cap memory usage of Haskell threads
In a Haskell program compiled with GHC, is it possible to programmatically guard against excessive memory usage?That is, have it notify the program when memory usage reaches a specified limit, prefera[详细]
2023-04-02 12:16 分类:问答Concurrent reading and writing to IOArray in Haskell
I am getting my feet wet writing concurrent programs in Haskell with GHC for multicore machines. As a first step I decided to write a program that reads and writes concurrently to an IOArray. I had th[详细]
2023-03-31 07:16 分类:问答