summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/T21390/GetTy.hs
blob: e52fbd95f5735bc9d556b570aa0e300a2a3ce6fe (plain)
1
2
3
4
5
6
7
8
9
{-# OPTIONS_GHC -fobject-code #-}

module GetTy (getTy) where

import Lib

getTy :: Ty -> Int
getTy (Ty (Just n)) = n
getTy (Ty Nothing) = error "uh oh"