1 vote
Why explicitly writing a singleton ctor - instead of just _ - is necessary in the context of dependent types?
You haven't really fleshed out your proposal for what this new GHC capability would look like. Are you imagining that GHC would, in the (very!) special case that an ADT or GADT has a single, zero-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
functional-programming × 19248haskell × 3337
scala × 2925
javascript × 2531
java × 1385
python × 1036
f# × 945
ocaml × 734
recursion × 673
lambda × 664
list × 637
scheme × 628
function × 620
clojure × 605
monads × 597
java-8 × 588
r × 464
arrays × 463
ramda.js × 458
c# × 451
c++ × 442
lisp × 393
types × 388
java-stream × 376
typescript × 367