diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bbde1d2..045d8f6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,6 +11,10 @@ jobs: os: [ubuntu-latest] cabal: ["3.12.1.0"] ghc: ["9.6.7", "9.8.4", "9.10.2"] + include: + # Test only with latest GHC on macOS + - os: macOS-latest # arm based macos system + ghc: 9.10.2 steps: - name: Clone Repository uses: actions/checkout@v4 diff --git a/test/TestData.hs b/test/TestData.hs index 081040b..98373b7 100644 --- a/test/TestData.hs +++ b/test/TestData.hs @@ -25,7 +25,7 @@ module TestData ) where -import Addy.Internal.Char (utf8NonAscii) +import Addy.Internal.Char (utf8NonAscii, atext) import Data.Aeson (FromJSON) import qualified Data.Aeson as Aeson import Data.Char @@ -200,7 +200,7 @@ genDomain = where okay :: Text -> Bool okay t = - Text.all allowedChar t + Text.all atext t && not (Text.isPrefixOf "-" t) && not (Text.isSuffixOf "-" t)