summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/pkg01/ImpSafe04.hs
blob: 831d1b2bc1d9b5ad6141dceaf8b9d15c2534ac7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
module ImpSafe04 ( MyWord ) where

-- While Data.Word is safe it imports trustworthy
-- modules in base, hence base needs to be trusted.
-- Note: Worthwhile giving out better error messages for cases
-- like this if I can.
import safe Data.Word
import System.IO.Unsafe

type MyWord = Word