From 6746549772c5cc0ac66c0fce562f297f4d4b80a2 Mon Sep 17 00:00:00 2001 From: Richard Eisenberg Date: Fri, 11 Dec 2015 18:19:53 -0500 Subject: Add kind equalities to GHC. This implements the ideas originally put forward in "System FC with Explicit Kind Equality" (ICFP'13). There are several noteworthy changes with this patch: * We now have casts in types. These change the kind of a type. See new constructor `CastTy`. * All types and all constructors can be promoted. This includes GADT constructors. GADT pattern matches take place in type family equations. In Core, types can now be applied to coercions via the `CoercionTy` constructor. * Coercions can now be heterogeneous, relating types of different kinds. A coercion proving `t1 :: k1 ~ t2 :: k2` proves both that `t1` and `t2` are the same and also that `k1` and `k2` are the same. * The `Coercion` type has been significantly enhanced. The documentation in `docs/core-spec/core-spec.pdf` reflects the new reality. * The type of `*` is now `*`. No more `BOX`. * Users can write explicit kind variables in their code, anywhere they can write type variables. For backward compatibility, automatic inference of kind-variable binding is still permitted. * The new extension `TypeInType` turns on the new user-facing features. * Type families and synonyms are now promoted to kinds. This causes trouble with parsing `*`, leading to the somewhat awkward new `HsAppsTy` constructor for `HsType`. This is dispatched with in the renamer, where the kind `*` can be told apart from a type-level multiplication operator. Without `-XTypeInType` the old behavior persists. With `-XTypeInType`, you need to import `Data.Kind` to get `*`, also known as `Type`. * The kind-checking algorithms in TcHsType have been significantly rewritten to allow for enhanced kinds. * The new features are still quite experimental and may be in flux. * TODO: Several open tickets: #11195, #11196, #11197, #11198, #11203. * TODO: Update user manual. Tickets addressed: #9017, #9173, #7961, #10524, #8566, #11142. Updates Haddock submodule. --- .gitmodules | 58 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to '.gitmodules') diff --git a/.gitmodules b/.gitmodules index 73ce0d1b5f..26b4fa0c0b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,119 +1,119 @@ [submodule "libraries/binary"] path = libraries/binary - url = ../packages/binary.git + url = http://git.haskell.org/packages/binary.git ignore = untracked [submodule "libraries/bytestring"] path = libraries/bytestring - url = ../packages/bytestring.git + url = http://git.haskell.org/packages/bytestring.git ignore = untracked [submodule "libraries/Cabal"] path = libraries/Cabal - url = ../packages/Cabal.git + url = http://git.haskell.org/packages/Cabal.git ignore = untracked [submodule "libraries/containers"] path = libraries/containers - url = ../packages/containers.git + url = http://git.haskell.org/packages/containers.git ignore = untracked [submodule "libraries/haskeline"] path = libraries/haskeline - url = ../packages/haskeline.git + url = http://git.haskell.org/packages/haskeline.git ignore = untracked [submodule "libraries/pretty"] path = libraries/pretty - url = ../packages/pretty.git + url = http://git.haskell.org/packages/pretty.git ignore = untracked [submodule "libraries/terminfo"] path = libraries/terminfo - url = ../packages/terminfo.git + url = http://git.haskell.org/packages/terminfo.git ignore = untracked [submodule "libraries/transformers"] path = libraries/transformers - url = ../packages/transformers.git + url = http://git.haskell.org/packages/transformers.git ignore = untracked [submodule "libraries/xhtml"] path = libraries/xhtml - url = ../packages/xhtml.git + url = http://git.haskell.org/packages/xhtml.git ignore = untracked [submodule "libraries/Win32"] path = libraries/Win32 - url = ../packages/Win32.git + url = http://git.haskell.org/packages/Win32.git ignore = untracked [submodule "libraries/primitive"] path = libraries/primitive - url = ../packages/primitive.git + url = http://git.haskell.org/packages/primitive.git ignore = untracked [submodule "libraries/vector"] path = libraries/vector - url = ../packages/vector.git + url = http://git.haskell.org/packages/vector.git ignore = untracked [submodule "libraries/time"] path = libraries/time - url = ../packages/time.git + url = http://git.haskell.org/packages/time.git ignore = untracked [submodule "libraries/random"] path = libraries/random - url = ../packages/random.git + url = http://git.haskell.org/packages/random.git ignore = untracked [submodule "libraries/array"] path = libraries/array - url = ../packages/array.git + url = http://git.haskell.org/packages/array.git ignore = none [submodule "libraries/deepseq"] path = libraries/deepseq - url = ../packages/deepseq.git + url = http://git.haskell.org/packages/deepseq.git ignore = none [submodule "libraries/directory"] path = libraries/directory - url = ../packages/directory.git + url = http://git.haskell.org/packages/directory.git ignore = none [submodule "libraries/filepath"] path = libraries/filepath - url = ../packages/filepath.git + url = http://git.haskell.org/packages/filepath.git ignore = none [submodule "libraries/hoopl"] path = libraries/hoopl - url = ../packages/hoopl.git + url = http://git.haskell.org/packages/hoopl.git ignore = none [submodule "libraries/hpc"] path = libraries/hpc - url = ../packages/hpc.git + url = http://git.haskell.org/packages/hpc.git ignore = none [submodule "libraries/process"] path = libraries/process - url = ../packages/process.git + url = http://git.haskell.org/packages/process.git ignore = none [submodule "libraries/unix"] path = libraries/unix - url = ../packages/unix.git + url = http://git.haskell.org/packages/unix.git ignore = none [submodule "libraries/parallel"] path = libraries/parallel - url = ../packages/parallel.git + url = http://git.haskell.org/packages/parallel.git ignore = none [submodule "libraries/stm"] path = libraries/stm - url = ../packages/stm.git + url = http://git.haskell.org/packages/stm.git ignore = none [submodule "libraries/dph"] path = libraries/dph - url = ../packages/dph.git + url = http://git.haskell.org/packages/dph.git ignore = none [submodule "utils/haddock"] path = utils/haddock - url = ../haddock.git + url = http://git.haskell.org/haddock.git ignore = none branch = ghc-head [submodule "nofib"] path = nofib - url = ../nofib.git + url = http://git.haskell.org/nofib.git ignore = none [submodule "utils/hsc2hs"] path = utils/hsc2hs - url = ../hsc2hs.git + url = http://git.haskell.org/hsc2hs.git ignore = none [submodule "libffi-tarballs"] path = libffi-tarballs - url = ../libffi-tarballs.git + url = http://git.haskell.org/libffi-tarballs.git ignore = none [submodule ".arc-linters/arcanist-external-json-linter"] path = .arc-linters/arcanist-external-json-linter -- cgit v1.2.1