I get a segfault when running the following code:
import qualified Data.Vector as V
import Data.Word
main :: IO ()
main = (V.enumFromTo (pred maxBound) maxBound :: V.Vector Word8) `seq` return ()
$ cabal --version
cabal-install version 2.0.0.0
compiled using version 2.0.0.2 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1
I now use enumFromN as a workaround, that works.
This happens with vector-0.12.0.1 from hackage.
I get a segfault when running the following code:
I now use
enumFromNas a workaround, that works.This happens with
vector-0.12.0.1from hackage.