-
In chapter 8 I found this type signature:
```
map :: Functor f => (a -> b) -> f a -> f b
```
While the introductory chapter on Hindley-Milner was easy to follow, I think it doesn't cover the above s…
-
I want to make Peach a statically-typed language with optional annotations (and therefore type inference).
A [Damas-Hindley-Milner](https://en.wikipedia.org/wiki/Hindley–Milner_type_system) w/Algorit…
joews updated
7 years ago
-
I've been trying to get in the habit of using flow, however, a lot of the times I feel it's at the cost of readability.
```ts
import { toLower, replace, pipe } from 'ramda'
// This inline funct…
BLamy updated
7 years ago
-
Introduce two new syntax for type declaration based on JSDoc
``` typescript
var myString: !string = 'hello world'; //non-nullable
var myString1: ?string = 'hello world'; // nullable
var myString2: s…
-
For now, type inference falls flat for cases like this:
```
z = 0
z = z + (initially unknown type)
```
(it just derives the type of zero)
-
discuss exactly the role of inference in a situation like hazelnut, how that interacts with holes, non-local type errors, etc. and why we have a bidirectional system. there's a tradeoff there, and we …
-
Should there be a small section describing Hindley-Milner type signatures? I am just recently getting into the world of functional programming and know that at first I was confused about all these "st…
-
I wonder if there is any reason for choosing this signature:
https://github.com/sanctuary-js/sanctuary-def/blob/master/index.js#L62
```js
// add :: Number -> Number -> Number
def('add', {},…
-
@ackerdev, @MikaAK, and @JAForbes recently mentioned on Gitter that they find [`meld`][1] useful. The function was removed in #280 after failing to receive support in #278.
At least a handful of pe…
-
Maybe.map is documented as follows:
`Maybe#map :: Maybe a ~> (a -> b) -> Maybe b`
While I am encountering the following functionality:
`Maybe#map :: Maybe a ~> (a -> b) -> Just b`
For exam…