Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
String Haskell Lucid重载字符串_String_Haskell - Fatal编程技术网

String Haskell Lucid重载字符串

String Haskell Lucid重载字符串,string,haskell,String,Haskell,我在Scotty的一个小项目中使用Lucid 在以下节目中: p_ "hello world" 我想运行一些字符串函数,例如: p_ (reverse "hello world") 当然,我有一个类型错误 有人能帮我做这项工作吗?你可以自己做转换,这基本上就是为你做的。例如: import Data.String(fromString) p_ (fromString (reverse "hello world")) 你可以自己做转换,这基本上就是为你做的。例如: imp

我在Scotty的一个小项目中使用Lucid

在以下节目中:

p_ "hello world"
我想运行一些字符串函数,例如:

p_ (reverse "hello world")
当然,我有一个类型错误

有人能帮我做这项工作吗?

你可以自己做转换,这基本上就是为你做的。例如:

import Data.String(fromString)

p_ (fromString (reverse "hello world"))
你可以自己做转换,这基本上就是为你做的。例如:

import Data.String(fromString)

p_ (fromString (reverse "hello world"))