Skip to content

Commit

Permalink
Resolve minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthad authored and Bodigrim committed Apr 18, 2023
1 parent 8af5f44 commit 6c2ad14
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Data/Text/Internal/Validate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module Data.Text.Internal.Validate
) where

import Data.Array.Byte (ByteArray(ByteArray))
import GHC.Exts (ByteArray#)
import Data.ByteString (ByteString)
import GHC.Exts (isTrue#,isByteArrayPinned#)

Expand All @@ -38,6 +37,7 @@ import Data.Text.Internal.ByteStringCompat (withBS)
import Data.Text.Internal.Unsafe (unsafeWithForeignPtr)
import Data.Text.Internal.Validate.Simd (c_is_valid_utf8_bytearray_safe,c_is_valid_utf8_bytearray_unsafe,c_is_valid_utf8_ptr_unsafe)
#else
import GHC.Exts (ByteArray#)
import Data.Text.Internal.Encoding.Utf8 (CodePoint(..),DecoderResult(..),utf8DecodeStart,utf8DecodeContinue)
import GHC.Exts (Int(I#),indexWord8Array#)
import GHC.Word (Word8(W8#))
Expand Down
1 change: 0 additions & 1 deletion src/Data/Text/Internal/Validate/Simd.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnliftedFFITypes #-}

Expand Down
6 changes: 1 addition & 5 deletions text.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ flag developer
manual: True

flag simdutf
description: use simdutf library
description: use simdutf library, causes Data.Text.Internal.Validate.Simd to be exposed
default: True
manual: True

Expand Down Expand Up @@ -137,10 +137,6 @@ library
if flag(simdutf) && os(netbsd) && impl(ghc < 9.4)
build-depends: base < 0

-- Before GHC 9.4, Data.Array.Byte is not in base
if impl(ghc < 9.4)
build-depends: data-array-byte >= 0.1.0.1

exposed-modules:
Data.Text
Data.Text.Array
Expand Down

0 comments on commit 6c2ad14

Please sign in to comment.