summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T6035.hs
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-02-22 21:32:51 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2016-02-23 12:27:47 +0100
commit754a2f2bb7416bd7fe453ba7bcb7c089f5ef3b8f (patch)
tree45bc14d7e354e9b985a33ba3c7242fd490e1e025 /testsuite/tests/polykinds/T6035.hs
parent8626ac91a3cac028bbe742f07a1ce9fb598589f6 (diff)
downloadhaskell-754a2f2bb7416bd7fe453ba7bcb7c089f5ef3b8f.tar.gz
Testsuite: delete Windows line endings [skip ci] (#11631)
Diffstat (limited to 'testsuite/tests/polykinds/T6035.hs')
-rw-r--r--testsuite/tests/polykinds/T6035.hs56
1 files changed, 28 insertions, 28 deletions
diff --git a/testsuite/tests/polykinds/T6035.hs b/testsuite/tests/polykinds/T6035.hs
index c9e4342d08..a6f5ffe54a 100644
--- a/testsuite/tests/polykinds/T6035.hs
+++ b/testsuite/tests/polykinds/T6035.hs
@@ -1,28 +1,28 @@
-{-# LANGUAGE PolyKinds, DataKinds, TypeFamilies, KindSignatures, GADTs, TypeOperators
- #-}
-
-module T6035 where
-
-data Nat = Zero | Succ Nat
-
-type family Sing (a :: k) :: k -> *
-
-data SNat n where
- SZero :: SNat Zero
- SSucc :: SNat n -> SNat (Succ n)
-
-data SList (a :: [k]) where
- SNil :: SList '[]
- SCons :: Sing h h -> SList t -> SList (h ': t)
-
-type instance Sing (a :: Nat) = SNat
-type instance Sing (a :: [k]) = SList
-
-nil :: SList '[]
-nil = SNil
-
-zero :: SList '[ '[] ]
-zero = SCons SNil SNil
-
-term :: SList '[ '[Zero], '[]]
-term = SCons (SCons SZero SNil) (SCons SNil SNil)
+{-# LANGUAGE PolyKinds, DataKinds, TypeFamilies, KindSignatures, GADTs, TypeOperators
+ #-}
+
+module T6035 where
+
+data Nat = Zero | Succ Nat
+
+type family Sing (a :: k) :: k -> *
+
+data SNat n where
+ SZero :: SNat Zero
+ SSucc :: SNat n -> SNat (Succ n)
+
+data SList (a :: [k]) where
+ SNil :: SList '[]
+ SCons :: Sing h h -> SList t -> SList (h ': t)
+
+type instance Sing (a :: Nat) = SNat
+type instance Sing (a :: [k]) = SList
+
+nil :: SList '[]
+nil = SNil
+
+zero :: SList '[ '[] ]
+zero = SCons SNil SNil
+
+term :: SList '[ '[Zero], '[]]
+term = SCons (SCons SZero SNil) (SCons SNil SNil)