I am in the process of writing a small lisp translator in haskell. In the process, I defined this data type to get a less typed number.
data Number = _Int Integer | _Rational Rational | _Float Double deriving(Eq,Show)
Compilation with error errors with the following error:
ERROR "types.hs": 16 - Syntax error in data type declaration (unexpected `| ')
Line 16 is the line with the first |in the code above.
|
. |, - . , , Haskell.
, Hugs "", , , , , Hugs : ", ! ?"
GHC :
types.hs:1:14: Not a constructor: `_Int'
Source: https://habr.com/ru/post/1737439/More articles:Cfsearch в сочетании документов и индексированных данных запроса? - coldfusiondrop-down list on the Internet with a large list of entries - performanceCreating a C ++ library for a C # project - no functions exported - c ++Can I use Rails 2.3 with Ruby 1.9? - ruby-on-railshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1737438/httpwebrequest-to-different-ip-than-the-domain-resolves-to&usg=ALkJrhjy_HzELtdJfOldYqzlyQZEGLoylgHow to update multiple rows with different values in MySQL? - sqlJavaScript to enable submit button (not working) - javascriptHow to block a workstation from a Windows service? - .netWhere for me to drag a java swing string? - javause the mysql stored procedure result set in another stored procedure - mysqlAll Articles