[Haskell-beginners] Using "cabal test" and getting "cabal: Prelude.read: no parse"

Daniel King daniel.zidan.king at gmail.com
Thu May 29 16:56:02 UTC 2014


Hi all,

In correspondence with #hackage, I determined the source of the error.
I wasn't using a test framework with the detailed-0.9 "test type", so
when my tests threw errors they killed the process and eventually
produced that Prelude.read error.

On Tue, May 27, 2014 at 3:29 PM, Brent Yorgey <byorgey at seas.upenn.edu> wrote:
> On Tue, May 27, 2014 at 02:47:51PM -0400, Daniel King wrote:
>> On Tue, May 27, 2014 at 1:45 PM, Brent Yorgey <byorgey at seas.upenn.edu> wrote:
>> > This seems related, though I don't think it's your problem exactly:
>> >
>> >   https://github.com/haskell/cabal/issues/1366
>>
>> I saw that, realized I didn't change directory at all and wasn't
>> really sure how to proceed. It did help me narrow done the cause to
>> something directly in the test suite though.
>>
>> > Apparently a "read: no parse" error can be generated when cabal fails
>> > to read a log file for some reason.  Can you tell us precisely what
>> > versions of cabal and ghc you are using (i.e. the output of ghc
>> > --version and cabal --version)?
>>
>> Sure thing:
>>
>>     1 danking at spock # cabal --version
>>     cabal-install version 1.20.0.2
>>     using version 1.20.0.0 of the Cabal library
>>
>>     danking at spock # ghc --version
>>     The Glorious Glasgow Haskell Compilation System, version 7.6.3
>>
>> Upon seeing this version information, I tried changing my build-depends to
>> depend on Cabal 1.20 or greater, but I still get the error.
>
> Hmm, I'm not sure then.  The people who know the most about the
> internals of Cabal likely do not read this list; you may have better
> luck asking on stackoverflow.com and/or in the #hackage channel on
> Freenode IRC.
>
> -Brent
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners



-- 
Dan King


More information about the Beginners mailing list