[Git][ghc/ghc][wip/int-index/tuple-tycon-puns] Define Tuple0, Tuple1

Vladislav Zavialov (@int-index) gitlab at gitlab.haskell.org
Mon Jan 16 18:54:05 UTC 2023



Vladislav Zavialov pushed to branch wip/int-index/tuple-tycon-puns at Glasgow Haskell Compiler / GHC


Commits:
d01f08c7 by Vladislav Zavialov at 2023-01-16T21:53:58+03:00
Define Tuple0, Tuple1

- - - - -


1 changed file:

- libraries/ghc-prim/GHC/Tuple.hs


Changes:

=====================================
libraries/ghc-prim/GHC/Tuple.hs
=====================================
@@ -19,6 +19,8 @@
 module GHC.Tuple (
   module GHC.Tuple.Prim,
   Solo (Solo, MkSolo),
+  Tuple0,
+  Tuple1,
 ) where
 
 import GHC.CString ()  -- Make sure we do it first, so that the
@@ -28,6 +30,9 @@ import GHC.Tuple.Prim
 
 default () -- Double and Integer aren't available yet
 
+type Tuple0 = Unit
+type Tuple1 = Solo
+
 {-# DEPRECATED Solo "The Solo constructor has been renamed to MkSolo to avoid punning." #-}
 pattern Solo :: a -> Solo a
 pattern Solo x = MkSolo x



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d01f08c77128df7404c465537382983c9abe7922

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d01f08c77128df7404c465537382983c9abe7922
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230116/34b98e64/attachment-0001.html>


More information about the ghc-commits mailing list