Why can't I define a new type in ghci?

前端 未结 4 1151
花落未央
花落未央 2020-12-30 19:34

I get an error in ghci when I try to define a new type:

Prelude> data Point = Pt Int Int
:1:0: parse error on input `data\'
Prelude> let d         


        
4条回答
提交回复
热议问题