1. 16 Nov, 2015 1 commit
  2. 01 May, 2015 1 commit
    • Simon Peyton Jones's avatar
      Move IP, Symbol, Nat to ghc-prim · 2f6a0ac7
      Simon Peyton Jones authored
      This motivation is to declare class IP much earlier (in ghc-prim),
      so that implicit parameters (which depend on IP) is available
      to library code, notably the 'error' function.
      
      * Move class IP from base:GHC.IP
                      to ghc-prim:GHC.Classes
      * Delete module GHC.IP from base
      
      * Move types Symbol and Nat
            from base:GHC.TypeLits
            to ghc-prim:GHC.Types
      
      There was a name clash in GHC.RTS.Flags, where I renamed
      the local type Nat to RtsNat.
      2f6a0ac7
  3. 16 Dec, 2014 1 commit
  4. 06 Dec, 2014 1 commit
  5. 21 Nov, 2014 1 commit
  6. 09 Sep, 2014 1 commit
  7. 16 Jun, 2014 1 commit
  8. 14 Jun, 2014 1 commit
  9. 15 May, 2014 1 commit
  10. 01 Apr, 2014 1 commit
  11. 27 Mar, 2014 1 commit
  12. 24 Mar, 2014 1 commit
  13. 19 Mar, 2014 1 commit
  14. 29 Jan, 2014 1 commit
  15. 04 Jan, 2014 1 commit
  16. 03 Jan, 2014 1 commit
  17. 01 Nov, 2013 1 commit
  18. 28 Oct, 2013 1 commit
  19. 18 Oct, 2013 1 commit
  20. 10 Oct, 2013 1 commit
  21. 03 Oct, 2013 3 commits
  22. 28 Sep, 2013 2 commits
  23. 24 Sep, 2013 1 commit
  24. 21 Sep, 2013 2 commits
    • Herbert Valerio Riedel's avatar
      Add Haddock `/Since: 4.6.0.0/` comments to symbols · 2642d9f6
      Herbert Valerio Riedel authored
      This commit retroactively adds `/Since: 4.6.0.0/` annotations to symbols
      newly added/exposed in `base-4.6.0.0` (as shipped with GHC 7.6.1).
      
      See also 6368362f which adds the respective annotation for symbols newly
      added in `base-4.7.0.0` (that goes together with GHC 7.8.1).
      Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
      2642d9f6
    • Herbert Valerio Riedel's avatar
      Add Haddock `/Since: 4.7.0.0/` comments to new symbols · 77f32dad
      Herbert Valerio Riedel authored
      These annotations were added in such a way, that the line
      
      {{{
      /Since: 4.7.0.0/
      }}}
      
      represents the last paragraph of the Haddock comment.
      
      Maybe Haddock will have support for this meta-syntax at some point, and
      be able to inherited the since-version property to the children of an
      annotated symbol and display the since-version property in the rendered
      documentation only in cases when it's not visually obvious (for
      instance, when re-exporting documentation strings).
      Signed-off-by: Herbert Valerio Riedel's avatarHerbert Valerio Riedel <hvr@gnu.org>
      77f32dad
  25. 08 Sep, 2013 1 commit
  26. 26 Jun, 2013 1 commit
  27. 11 Jun, 2013 1 commit
  28. 31 May, 2013 1 commit
  29. 30 May, 2013 1 commit
    • ian@well-typed.com's avatar
      Revert "Add code to convert from representation types, to existentially quantified singletons." · 3730af09
      ian@well-typed.com authored
      This reverts commit f7fb908ad963f7180c30b55fba57a858b0391de4.
      
      It causes a valdiate failure:
      
      *** Core Lint errors : in result of Simplifier ***
      <no location info>: Warning:
          In the expression: f_aqM
                               (x_aqF
                                `cast` (GHC.TypeLits.NTCo:SingI[0] <k_aKs> <n_aKt>
                                        :: GHC.TypeLits.SingI k_aKs n_aKt
                                             ~#
                                           GHC.TypeLits.Sing k_aKs n_aKt))
          From-type of Cast differs from type of enclosed expression
          From-type: GHC.TypeLits.SingI k_aKs n_aKt
          Type of enclosed expr: GHC.TypeLits.Sing k_aHe n_aHf
          Actual enclosed expr: x_aqF
          Coercion used in cast: GHC.TypeLits.NTCo:SingI[0] <k_aKs> <n_aKt>
      *** Offending Program ***
      [...]
      3730af09
  30. 27 May, 2013 1 commit
    • Iavor S. Diatchki's avatar
      Add code to convert from representation types, to existentially quantified singletons. · 02b9a24a
      Iavor S. Diatchki authored
      The basic idea is like this:
      
      data SomeSing where SomeSing :: SingI n => Proxy n -> SomeSing
      
      toSing :: Integer -> Maybe SomeSing  -- Maybe, so that we rejetc -ve numbers
      
      The actual implementation is a bit more complicated because `SomeSing`
      is actually parameterized by a kind, so we really have something akin
      `SomeSing k`.  Also, `toSing` is a bit more general because, depending
      on the kind, the representation is different.  For example, we also
      support:
      
      toSing :: String -> Maybe (SomeSing (KindParam :: KindIs Symbol))
      
      
      This change relies on the primitive added to the compiler, which
      converts `Sing` values into `SingI` dictionaries.
      
      A nice benefit of this change is that, as far as I can see,
      we don't need  `unsafeSinNat` and friends, so I removed them.
      02b9a24a
  31. 05 Feb, 2013 1 commit
  32. 25 Jan, 2013 1 commit
  33. 08 Jan, 2013 1 commit
  34. 22 Dec, 2012 1 commit
  35. 30 Nov, 2012 1 commit
  36. 21 Nov, 2012 1 commit