ghci
How to provide explicit type declarations for functions when using GHCi?
How to I define the equivalent of this function (taken from learnyouahaskell) inside GHCi? import Data.List[详细]
2023-01-04 13:40 分类:问答Info on type family instances
Intro: While checking out snoyman\'s \"persistent\" library I found myself wanting ghci\'s (or another tool) assistance in figuring out stuff.[详细]
2023-01-02 20:09 分类:问答ghci not loading function from file
In test.hs, I have: doubleMe x = x + x In ghci, I type: Prelude> :l test [1 of 1] Compiling Main( test.hs, interpreted )[详细]
2023-01-01 14:03 分类:问答GHCi error: Not in scope 'removeNonUpperCase'
I\'m trying to compile this function from Learn You a Haskell for Great Good. removeNonUppercase st = [ c | c <- st, c `elem` [\'A\'..\'Z\']][详细]
2022-12-25 20:51 分类:问答Can GHCi tell me the type of a local Haskell function?
Is it possible to query the ghci for the type i开发者_Python百科t inferred for a function inside another function?This is a quick and ugly hack, but what I usually do is just use the function in the w[详细]
2022-12-18 11:09 分类:问答Why does ghci say that 1.1 + 1.1 + 1.1 > 3.3 is True?
I\'ve been going through a Haskell tutorial recently and noticed this behaviour when trying some simple Haskell expressions in the interactive ghci shell:[详细]
2022-12-16 03:28 分类:问答How to use 'oneof' in quickCheck (Haskell)
I am trying to write a prop that changes a Sudoku and then checks if it\'s still valid. However, I am not sure how to use the \"oneof\"-function properly. Can you give me some hints, please?[详细]
2022-12-13 11:46 分类:问答How to use fromInteger in Haskell?
One way to calculate 2^8 in haskell is by writing product(replicate 8 2) When trying to create a function for this, defined as follows...[详细]
2022-12-10 13:00 分类:问答how to write numbers in lambda using ghci
I am new to Haskell, using Ghci. I have a function, called three, that I want to write as let three =\\x->(\\y->(x(x(x y))))[详细]
2022-12-09 13:12 分类:问答