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
{{ message }}
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
I'm following code in 'exception.ml' and try to create my own exception, but run into an error. This is relevant part of my source file:
open import "prelude.ml"
type decode_error = Decode_error of string
deriving instance typeable decode_error
instance Exception.exception decode_error begin
let describe_exception (Decode_error x) = "Decode error: " ^ x
end
Amc complains:
error (E1001)
Variable not in scope: `describe_exception`
Arising from use of the binding
│
126 │ let describe_exception (Decode_error x) = "Decode error: " ^ x
│ ^^^^^^^^^^^^^^^^^^
The following message has a detailed explanation: 1001.
Try 'amc explain 1001' to see it.
I'm not sure what's exactly wrong here.
The text was updated successfully, but these errors were encountered:
I'm following code in 'exception.ml' and try to create my own exception, but run into an error. This is relevant part of my source file:
Amc complains:
I'm not sure what's exactly wrong here.
The text was updated successfully, but these errors were encountered: