Skip to content

Instantly share code, notes, and snippets.

@jbrown215
Created January 24, 2018 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbrown215/a9b7337fb939c6299621930781e99c3a to your computer and use it in GitHub Desktop.
Save jbrown215/a9b7337fb939c6299621930781e99c3a to your computer and use it in GitHub Desktop.
LH Repro
LiquidHaskell v0.8.2.2 Copyright 2013-17 Regents of the University of California. All Rights Reserved.
**** DONE: A-Normalization ****************************************************
**** DONE: annotate ***********************************************************
**** RESULT: ERROR *************************************************************
/Users/JordanBrown/research/binah/db-lib/src/Lib.hs:59:10: Error: Uh oh.
59 | {-@ data Blob = Blob { blobXVal :: Int, blobYVal :: Int } @-}
^
The types for the wrapper and worker data constructors cannot be merged
x1:Int -> x2:Int -> Blob
xx1:Int# -> xx2:Int# -> {VV : Blob | ((Lib.blobYVal VV) = xx2),
((Lib.blobXVal VV) = xx1),
((lqdc##$select##Models.Blob##2 VV) = xx2),
((lqdc##$select##Models.Blob##1 VV) = xx1),
((is$Models.Blob VV) <=> true)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment