packages feed

haskell-tools-builtin-refactorings-1.0.0.0: examples/Type/Primitives.hs

{-# LANGUAGE MagicHash #-}
module Type.Primitives where
import GHC.Prim

data MyInt = MyInt Int#

my3 = MyInt 3#

myPlus :: MyInt -> MyInt -> MyInt
myPlus (MyInt i) (MyInt j) = MyInt (i +# j)