-
[Given](http://www.purescript.org/learn/ffi/#handling-constrained-types):
``` purs
inOrder :: forall a. (Ord a) => a -> a -> Tuple a a
inOrder a1 a2 | a1 < a2 = Tuple a1 a2
inOrder a1 a2 = Tuple a2 a…
-
When reading the [FAQ entry about HKTs](https://github.com/rust-lang/rust-www/blob/master/faq.md#what-are-higher-kinded-types), I'd like to know where the terminology stems from.
Example:
> Any com…
-
This issue is here for me to track things I want to finish in the typechecker in `0.8.x`.
- Constraint inference (#202)
- Get rid of `meet` judgment
- Constraint kinds (#1764)
- Functional dependencie…
paf31 updated
8 years ago
-
There are four obvious options:
Java style: `Add`
Scala style: `Add[a, a]`
Haskell style: `Add a a`
Prolog style: `Add(a, a)`
Which option should we go for?
keean updated
8 years ago
-
This talk would be a Scala port of my YLJ16 talk "Stop paying for free monads".
The FP answer to "how do we do dependency injection" is to turn the question around and instead ask, what operations wo…
-
@shelby3 I want to discuss whether to include union types here. I would like to design a language that meets the requirements you have for extensibility, but I don't necessarily want to achieve it wit…
keean updated
8 years ago
-
The docs for `lens` declare it has the following type signature:
```
(s -> a) -> ((a, s) -> s) -> Lens s a
```
This claims the setter function must accept a tuple of a new focus and a target. Howeve…
-
The `foldl` and `foldr` implementations in this package conflict with the default so both cannot be brought in at once. However the main thing is that many languages have both a `foldl`/`foldr`, whic…
-
Sanctuary strives to complement Ramda with safe, total functions providing strong guarantees about their behavior. Enforcement is via first-order type checking, e.g. throwing TypeError when given a Nu…
-
There are bunch of dup code between Operation.swift and Stream.swift.
I tried to remove dup code by declaring Stream as Operation with NoError, but swift compiler has a bug that blocks this change. W…