diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-03-30 21:11:54 +0200 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-04-01 11:14:08 +0100 |
commit | f8f152e7089af9a5434408e17ff071999d381ee1 (patch) | |
tree | d00356e813c0fd95dbf81b796798f35fbe46e32a /testsuite/tests/simplCore | |
parent | 691508d87ec089e46524461a5c6ec59b1c17be4c (diff) | |
download | haskell-f8f152e7089af9a5434408e17ff071999d381ee1.tar.gz |
Change GHC.Prim to GHC.Exts in docs and tests
Users are supposed to import GHC.Exts rather than GHC.Prim.
Part of #18749.
Diffstat (limited to 'testsuite/tests/simplCore')
10 files changed, 9 insertions, 11 deletions
diff --git a/testsuite/tests/simplCore/T9646/Type.hs b/testsuite/tests/simplCore/T9646/Type.hs index 337a7859cc..4de77648ce 100644 --- a/testsuite/tests/simplCore/T9646/Type.hs +++ b/testsuite/tests/simplCore/T9646/Type.hs @@ -4,7 +4,7 @@ module Type where -import GHC.Prim +import GHC.Exts import GHC.Types import StrictPrim diff --git a/testsuite/tests/simplCore/should_compile/T13155.hs b/testsuite/tests/simplCore/should_compile/T13155.hs index f3ec2c8e50..fd968c6239 100644 --- a/testsuite/tests/simplCore/should_compile/T13155.hs +++ b/testsuite/tests/simplCore/should_compile/T13155.hs @@ -4,7 +4,6 @@ module T13155 where import GHC.Ptr -import GHC.Prim import GHC.Exts foo :: Ptr Float -> State# RealWorld -> (# State# RealWorld, Float #) diff --git a/testsuite/tests/simplCore/should_compile/T18589.hs b/testsuite/tests/simplCore/should_compile/T18589.hs index c892bc844e..82c6723730 100644 --- a/testsuite/tests/simplCore/should_compile/T18589.hs +++ b/testsuite/tests/simplCore/should_compile/T18589.hs @@ -1,7 +1,7 @@ {-# LANGUAGE MagicHash #-} module T18589 where -import GHC.Prim +import GHC.Exts -- See Note [Guarding against silly shifts] -- Make sure that a silly shift is optimized correctly diff --git a/testsuite/tests/simplCore/should_compile/T5658b.hs b/testsuite/tests/simplCore/should_compile/T5658b.hs index baaea86640..7b42738395 100644 --- a/testsuite/tests/simplCore/should_compile/T5658b.hs +++ b/testsuite/tests/simplCore/should_compile/T5658b.hs @@ -1,7 +1,6 @@ {-# LANGUAGE MagicHash, BangPatterns #-} module T5658b where -import GHC.Prim -import GHC.Exts ( isTrue# ) +import GHC.Exts foo :: ByteArray# -> ByteArray# -> Int# -> Int# -> Bool foo xs ys m n = go 0# 0# diff --git a/testsuite/tests/simplCore/should_compile/T7088.hs b/testsuite/tests/simplCore/should_compile/T7088.hs index 7b3ec2c603..254d7851fa 100644 --- a/testsuite/tests/simplCore/should_compile/T7088.hs +++ b/testsuite/tests/simplCore/should_compile/T7088.hs @@ -2,7 +2,7 @@ module Float where -import GHC.Prim +import GHC.Exts foo vs = let w = if length (reverse vs) > 10 then Just (length vs) else Nothing diff --git a/testsuite/tests/simplCore/should_compile/T7287.hs b/testsuite/tests/simplCore/should_compile/T7287.hs index bb9035a6ae..e8dc1bda11 100644 --- a/testsuite/tests/simplCore/should_compile/T7287.hs +++ b/testsuite/tests/simplCore/should_compile/T7287.hs @@ -1,7 +1,7 @@ {-# LANGUAGE MagicHash #-} module T7287 where -import GHC.Prim +import GHC.Exts {-# RULES "int2Word#/word2Int#" forall x. int2Word# (word2Int# x) = x diff --git a/testsuite/tests/simplCore/should_compile/T7796.hs b/testsuite/tests/simplCore/should_compile/T7796.hs index f0f5353316..6d6c824332 100644 --- a/testsuite/tests/simplCore/should_compile/T7796.hs +++ b/testsuite/tests/simplCore/should_compile/T7796.hs @@ -2,7 +2,7 @@ module T7796 where -import GHC.Prim +import GHC.Exts -- -- test for #7796 diff --git a/testsuite/tests/simplCore/should_compile/T8274.hs b/testsuite/tests/simplCore/should_compile/T8274.hs index 03f50ef3ea..97a1cde04c 100644 --- a/testsuite/tests/simplCore/should_compile/T8274.hs +++ b/testsuite/tests/simplCore/should_compile/T8274.hs @@ -1,7 +1,7 @@ {-# LANGUAGE MagicHash #-} module T8274 where -import GHC.Prim +import GHC.Exts data P = Positives Int# Float# Double# Char# Word# data N = Negatives Int# Float# Double# diff --git a/testsuite/tests/simplCore/should_run/T9390.hs b/testsuite/tests/simplCore/should_run/T9390.hs index 04b4da0e4d..2d5d9ce6e4 100644 --- a/testsuite/tests/simplCore/should_run/T9390.hs +++ b/testsuite/tests/simplCore/should_run/T9390.hs @@ -2,7 +2,7 @@ module Main(main ) where import GHC.IO (IO (..)) -import GHC.Prim +import GHC.Exts writeB :: MutableArray# RealWorld Char -> IO () writeB arr# = IO $ \s0# -> (# writeArray# arr# 0# 'B' s0#, () #) diff --git a/testsuite/tests/simplCore/should_run/simplrun010.hs b/testsuite/tests/simplCore/should_run/simplrun010.hs index eeeb48281f..eb9d18973d 100644 --- a/testsuite/tests/simplCore/should_run/simplrun010.hs +++ b/testsuite/tests/simplCore/should_run/simplrun010.hs @@ -17,7 +17,7 @@ import Data.Char(ord,chr) -- low level imports import GHC.Base (realWorld#) import GHC.IO (IO(IO), unIO, unsafePerformIO) -import GHC.Prim (State#,RealWorld) +import GHC.Exts (State#,RealWorld) -- FFI replacements for Haskell stuff |