Input: one two three 3-11 four and five T1 FI want to capture"one two three", "3", "11", "four and five T1 F" in groups
我在每个输入字符串上应用每个正则表达式,它应该只传递其中的一个。
Int类型。有用于文本Bool和Num的构造函数,它们具有相应的类型。只能添加Int表达式(构造函数Plus)。If表达式中的条件应该是Bool类型,而两个分支都应该具有相同的类型。a => Expr a -> Expr a -> Expr Bool, at Main.hs:17:3-Eq a => Expr a -> Expr a -> Expr Bool,