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
The following program works (ie. results in java.lang.ArithmeticException: / by zero) with Frege:
dataS=S{
!a::Int,
b::Int}main::IOInt
main =return$ r f
where
f =S (1`div`0) 2
r (S _ b) = b
(Note that differing from the Haskell standard !a :: Int is used and not a :: !Int).
But Frege does not support strictness flags without fields, ie. data S = S !Int Int does not work.
The text was updated successfully, but these errors were encountered:
The following program works (ie. results in
java.lang.ArithmeticException: / by zero
) with Frege:(Note that differing from the Haskell standard
!a :: Int
is used and nota :: !Int
).But Frege does not support strictness flags without fields, ie.
data S = S !Int Int
does not work.The text was updated successfully, but these errors were encountered: