-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hoogle allows you to search many standard Haskell libraries by either function name, or by approximate type signature. I find it very useful. Is there anything like Hoogle for Scala? Search in ScalaDoc 2 only finds types and packages by name.
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I wanted to use {-# LANGUAGE OverloadedStrings #-} but I forgot how it's called. This kind of thing isn't hoogle-able, and also it takes some time finding using google*.
Is there somewhere a list of GHC extensions named as they are in the LANGUAGE pragma?
* My googling search journey:
Google
Haskell…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need a function which will choose a non-empty monoid. For a list this will mean the following behaviour:
> [1] `mor` []
[1]
> [1] `mor` [2]
[1]
> [] `mor` [2]
[2]
Now, I've actually implemented it but am wondering wether there exists some standard alternative, because it seems to be…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
In Monads for natural language semantics, Chung-Chieh Shan shows how monads can be used to give a nicely uniform restatement of the standard accounts of some different kinds of natural language phenomena (interrogatives, focus, intensionality, and quantification). He defines two composition operations…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Say I want to know if F# has a library function of type
('T -> bool) -> 'T list -> int
ie, something that counts how many items of a list that a function returns true for. (or returns the index of the first item that returns true)
I used to use the big list at the MSR site for F# before…
>>> More