ghc
Debugging infinite loops in Haskell programs with GHCi
For the first time I\'ve encountered an infinite loop in a Haskell program I\'m writing. I\'ve narrowed it down to a quite specific section of code, but I cannot seem to pinpoint exactly where I have[详细]
2023-02-17 14:41 分类:问答Haskell: Cannot use dropWhileEnd, modules Data.Text.Lazy/Data.Lazy not found
First I have to admit: I am totally new to Haskell. I have practiced a bit with it and now have some trouble concerning string-manipulation:[详细]
2023-02-17 01:03 分类:问答Kill runhaskell process on Windows
I\'ve got a haskell program I\'m executing with runhaskell on Windows. The program sits in an infinite loop listening on a network socket. I can\'t kill the program with ctrl-c, ctrl-d or ctrl-z and m[详细]
2023-02-14 07:14 分类:问答How are `ghc-pkg` and `cabal` programs related? (Haskell)
As I know cabal is a program to manage installation of packages like FreeBSD\'s pkg_add. But there is another tool called ghc-pkg. I don\'t know why there are two different programs.开发者_如何学运维[详细]
2023-02-13 15:55 分类:问答How to compile Haskell to a static library?
Hey, I\'m learning Haskell and I\'m interested in using it to make static libraries for using in Python and probably C. After some googling I found out how to get GHC to output a shared object, but it[详细]
2023-02-13 12:25 分类:问答Haskell platfrom 2010 2.0.0 installtion error writing to file libHSGHC 6.12.3.p.a
Hi i have extract error Output folder: C:\\Haskell Platform\\2010.2.0.0\\Extract: libHSghc-6.12.3_p.a... 63%[详细]
2023-02-12 11:03 分类:问答When is UndecidableInstances safe? Some general questions regarding the GHC extension
I know of the documentation for -XUndecidableInstances, but I thought I\'d ask for an elaboration. Suppose I have two multi-parameter typeclasses (allowed with -XMultiParamTypeClasses)[详细]
2023-02-11 23:41 分类:问答Repeated evaluation of pure expression in IO action
I have a procedure that (a) does some IO, (b) constructs a lookup table, and (c) returns an IO action that uses the lookup table. But when compiled with -O, GHC (version 6.12.1) inlines the constructi[详细]
2023-02-08 16:18 分类:问答Is there any hope to cast ForeignPtr to ByteArray# (for a function :: ByteString -> Vector)
For performance reasons I would like a zero-copy cast of ByteString (strict, for now) to a Vector.Since Vector is just a ByteArray# under the hood, and ByteString is a ForeignPtr this might look somet[详细]
2023-02-08 13:34 分类:问答Why `(map digitToInt) . show` is so fast?
Converting non-negative Integer to its list of digits is commonly done like this: import Data.Char digits :: Integer -> [Int][详细]
2023-02-08 00:23 分类:问答