Skip to content

Commit

Permalink
Enable 'PolyKinds' in Linear.Trace (#122)
Browse files Browse the repository at this point in the history
This turns on 'PolyKinds' for appropriate GHC versions in 'Linear.Trace'.
The particular motivation is to generalize the `instance Dim * n =>
Trace (V * n)` to the kind `Nat`, such that `trace m` compiles for types
like `m :: V 5 (V 5 n)`.

Fixes #121
  • Loading branch information
harpocrates authored and RyanGlScott committed Feb 15, 2017
1 parent 3f2aa88 commit 8a6ae0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Linear/Trace.hs
@@ -1,6 +1,9 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DefaultSignatures #-}
#if __GLASGOW_HASKELL__ >= 707
{-# LANGUAGE PolyKinds #-}
#endif
#if __GLASGOW_HASKELL__ >= 702 && __GLASGOW_HASKELL__ < 710
{-# LANGUAGE Trustworthy #-}
#endif
Expand Down

0 comments on commit 8a6ae0b

Please sign in to comment.