You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fastest way to figure out what's happening is to setup a dual eta/stack project and inline the read expression by hand and print out the values of the different components of the read computation and run it with both Eta and Haskell and see where the difference is happening. I suggest you try the dual setup with a resolver from the lts-6* series (GHC 7.10) since the codegen for deriving Read has changed in GHC 8.
Since the Read instance is generated, you'd want to see what the compiler is generating by adding the field ghc-options: -ddump-deriv into your cabal file, and copy/paste and modify it a bit to make it compile with the given input.
Steps to Reproduce
data REC = REC {l::Int,r::Int} deriving (Read,Show)
main = print (read "REC {l=3,r=4}" :: REC)
Exception in thread "main" eta.runtime.exception.EtaException: Prelude.read: no parse
Your Environment
Did you install an older version of Eta/Etlas before?
Yes, but I removed before installing the latest version.
Current Eta & Etlas version:
eta-0.8.6b2.
etlas version 1.5.0.0
compiled using version 2.1.0.0 of the etlas-cabal library
Operating System and version:
macOS Sierra
The text was updated successfully, but these errors were encountered: