PeekTests: use B as shorthand for module Data.ByteString
We strive to use the same shorthand in all modules.
@@ -24,7 +24,7 @@ import Test.QuickCheck.Monadic (monadicIO, run, assert)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)
-import qualified Data.ByteString as BS
+import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as Char8
import qualified Data.List.NonEmpty as NonEmpty
import qualified Data.Map as Map
@@ -191,12 +191,12 @@ tests = testGroup "Peek"
, "retrieve ByteString" =:
Right "This is an ASCII string" `shouldBeResultOf` do
Lua.pushstring "This is an ASCII string"
- peekStringy @BS.ByteString Lua.stackTop
+ peekStringy @B.ByteString Lua.stackTop
, "fails on table" =:
isLeft `shouldHoldForResultOf` do
_ <- Lua.pushglobaltable
- peekStringy @BS.ByteString Lua.stackTop
+ peekStringy @B.ByteString Lua.stackTop
]
]
