1. 29 Sep, 2012 1 commit
    • Iavor S. Diatchki's avatar
      Add unary natural numbers to experiment on matching with literals. · 02998bd6
      Iavor S. Diatchki authored
      The idea is that when we want to match on type level nats, we should
      use `Nat1`, and use the `FromNat1` function to switch between the
      structured and unstructured representation of numbers.
      
      A bit of custom machinery is needed for this to work properly,
      because to go back (i.e., to solve FromNat1 x ~ 3) GHC needs to know
      that FromNat1 is an injective function.
      02998bd6
  2. 20 Sep, 2012 4 commits
  3. 17 Sep, 2012 1 commit
  4. 13 Sep, 2012 1 commit
  5. 09 Sep, 2012 1 commit
  6. 28 Aug, 2012 1 commit
  7. 24 Aug, 2012 1 commit
  8. 21 Aug, 2012 2 commits
  9. 20 Aug, 2012 1 commit
    • pcapriotti's avatar
      Improve definition of forever (#5205) · b3ef6457
      pcapriotti authored
      The previous implementation was:
      
          forever a = a >> forever a
      
      which can create a space leak in some cases, even with optimizations.
      The current implementation:
      
          forever a = let a' = a >> a' in a'
      
      prevents repeated thunk allocations by creating a single thunk for the
      final result, even without optimizations.
      b3ef6457
  10. 15 Aug, 2012 2 commits
  11. 13 Aug, 2012 2 commits
  12. 10 Aug, 2012 3 commits
  13. 08 Aug, 2012 1 commit
  14. 05 Aug, 2012 1 commit
  15. 02 Aug, 2012 1 commit
  16. 26 Jul, 2012 1 commit
  17. 25 Jul, 2012 2 commits
  18. 24 Jul, 2012 1 commit
  19. 20 Jul, 2012 3 commits
  20. 19 Jul, 2012 1 commit
  21. 18 Jul, 2012 1 commit
  22. 17 Jul, 2012 2 commits
  23. 15 Jul, 2012 1 commit
  24. 13 Jul, 2012 2 commits
  25. 11 Jul, 2012 1 commit
  26. 10 Jul, 2012 1 commit
  27. 09 Jul, 2012 1 commit