ghc
List concatenation using foldl', foldr
I\'m learning Haskell now and I\'m facing the following problem: I want to rewrite the ++ function using foldl\' and foldr. I\'ve done it with foldr:[详细]
2023-03-13 09:42 分类:问答Where can I learn about #ifdef?
I see this used often to make modules compatible with GHC and Hugs, but google is not helping me le开发者_开发问答arn more about it.[详细]
2023-03-13 01:23 分类:问答Why is GHCi typing this statement oddly?
In answering a question on stackoverflow, I noticed that GHCi (interactive) is开发者_StackOverflow assigning a too-restrictive type in a let statement. Namely, given the code,[详细]
2023-03-12 02:21 分类:问答Is it possible to install the latest version of ghc using cabal?
I hope the title is self explanatory. I can\'t seem to find a开发者_运维问答 ghc package on hackage.No, you cannot. However, you can install from binaries or compile it from source (this requires that[详细]
2023-03-10 14:33 分类:问答Is GHC's auto-derived `Eq` instance really *O(N)*?
I just noticed while trying to learn to read GHC Core, that the automatically derived Eq instance for enum-style data types such as[详细]
2023-03-10 08:28 分类:问答Inline assembly in Haskell
Can I somehow use inline assembly in Haskell (similar to what GCC does for C)? I want to compare my Haskell code to the reference implementation (ASM) and this seems the most straightforward way. I g[详细]
2023-03-10 08:20 分类:问答Haskell do syntax and I/O
I was playing around with a simple program in Haskell: hello :: String -> String hello s = \"Hello, \" ++ (trim s) ++ \"!\\n\"[详细]
2023-03-10 06:50 分类:问答Help with running the Yesod Development server?
I\'m currently trying out web development frameworks for haskell and I recently came across yesod. It seemed pretty interesting so I installed it using cabal, however I\'m not able to run the developm[详细]
2023-03-10 03:54 分类:问答Cross-compilation with GHC
Is it possible to do cross-compilation with the Glasgow Ha开发者_Python百科skell Compiler for common architectures?[详细]
2023-03-09 16:34 分类:问答Reading GHC Core
Core is GHC\'s intermediate language. Reading Core can help you better understand the performance of your program. Someone asked me for documentation or tutorials on reading Core, but I couldn\'t find[详细]
2023-03-08 09:55 分类:问答