summaryrefslogtreecommitdiff
path: root/testsuite/tests/safeHaskell/check/Check08.hs
blob: da1aa6a50b5158bf4a9de249e327e54f4778c3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE Trustworthy, NoImplicitPrelude #-}
{-# OPTIONS_GHC -fpackage-trust #-}

-- make sure selective safe imports brings in pkg trust requirements correctly.
-- (e.g only for the imports that are safe ones)
module Check08 ( main' ) where

import safe Check08_A -- no pkg trust reqs
import safe Check08_B -- base pkg trust req

main' =
    let n = a (b 1)
    in n