Skip to content

Commit 5af632d

Browse files
committed
Make tests compile with text-2.1
Problem: tests do not compile when text-2.1 is used, because there are is a conflict in module names. `Data.Text.IO.Utf8` was added to `text` in version 2.1. GHC reports ambiguous modules error. Solution: specify the package explicitly using the PackageImports extension.
1 parent 02b0bf9 commit 5af632d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Test/Utf8/ReadWrite.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
{-# LANGUAGE LambdaCase #-}
77
{-# LANGUAGE OverloadedStrings #-}
8+
{-# LANGUAGE PackageImports #-}
89
{-# LANGUAGE ScopedTypeVariables #-}
910

1011
module Test.Utf8.ReadWrite where
@@ -22,7 +23,7 @@ import Hedgehog (Property, forAll, property, (===))
2223
import Test.HUnit (Assertion, assertFailure)
2324

2425
import qualified Data.Text.IO as T
25-
import qualified Data.Text.IO.Utf8 as Utf8
26+
import qualified "with-utf8" Data.Text.IO.Utf8 as Utf8
2627
import qualified System.IO as IO
2728
import qualified System.IO.Utf8 as Utf8
2829

0 commit comments

Comments
 (0)