Changes between Initial Version and Version 1 of Ticket #1870


Ignore:
Timestamp:
Nov 13, 2007 1:12:16 PM (8 years ago)
Author:
simonpj
Comment:

I tried to reproduce this. I got the code from http://darcs.haskell.org/packages/regex-unstable/

After adjusting the Cabal files to depend on containers etc, I compiled regex-base ok. Then I tried regex-tdfa. First I got this:

Text/Regex/TDFA/MutRunBS.hs:12:17:
    Could not find module `Data.ByteString.Base':

OK, so I changed the import to Data.ByteString.Unsafe. Then I get

bash-3.1$ runhaskell Setup.hs  build
Preprocessing library regex-tdfa-0.93...
Building regex-tdfa-0.93...
[ 1 of 21] Compiling Data.IntMap.CharMap ( Data/IntMap/CharMap.hs, dist/build/Data/IntMap/CharMap.o )
[ 2 of 21] Compiling Data.IntSet.EnumSet ( Data/IntSet/EnumSet.hs, dist/build/Data/IntSet/EnumSet.o )
[ 3 of 21] Compiling Data.IntMap.EnumMap ( Data/IntMap/EnumMap.hs, dist/build/Data/IntMap/EnumMap.o )
[ 4 of 21] Compiling Text.Regex.TDFA.IntArrTrieSet ( Text/Regex/TDFA/IntArrTrieSet.hs, dist/build/Text/Regex/TDFA/IntArrTrieSet.o )
[ 5 of 21] Compiling Text.Regex.TDFA.Common ( Text/Regex/TDFA/Common.hs, dist/build/Text/Regex/TDFA/Common.o )
[ 6 of 21] Compiling Text.Regex.TDFA.Pattern ( Text/Regex/TDFA/Pattern.hs, dist/build/Text/Regex/TDFA/Pattern.o )
[ 7 of 21] Compiling Text.Regex.TDFA.ReadRegex ( Text/Regex/TDFA/ReadRegex.hs, dist/build/Text/Regex/TDFA/ReadRegex.o )
[ 8 of 21] Compiling Text.Regex.TDFA.CorePattern ( Text/Regex/TDFA/CorePattern.hs, dist/build/Text/Regex/TDFA/CorePattern.o )
[ 9 of 21] Compiling Text.Regex.TDFA.TNFA ( Text/Regex/TDFA/TNFA.hs, dist/build/Text/Regex/TDFA/TNFA.o )
[10 of 21] Compiling Text.Regex.TDFA.RunMutState ( Text/Regex/TDFA/RunMutState.hs, dist/build/Text/Regex/TDFA/RunMutState.o )

Text/Regex/TDFA/RunMutState.hs:608:9:
    Constructor `STUArray' should have 4 arguments, but has been given 3
    In the pattern: STUArray _ _ msource
    In the definition of `copySTU':
	copySTU (STUArray _ _ msource) (STUArray _ _ mdest)
		  = ST $ \ s1# -> case sizeofMutableByteArray# msource of n# -> ...

Notice it compiled CorePattern just fine. At this point I stopped. This is all with GHC 6.8.1.

If you can give further info on how to reproduce I'll happily look further. Also trying compiling with -dcore-lint. Did you make clean to start with?

Simon

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1870

    • Property Difficulty changed from to Unknown
  • Ticket #1870 – Description

    initial v1  
    55There is no cut down test case yet.  The regex-base and regex-tdfa were pulled from
    66http://darcs.haskell.org/packages/regex-unstable/
    7 
     7{{{
    88> I darcs got the newest regex-tdfa (0.93 iirc) and made all the obvious changes involving LANGUAGE/OPTION_GHC pragmas to get this to work on ghc-6.8.1
    99>
     
    4141>
    4242> Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
    43 
     43}}}