String Haskell Lucid重载字符串
我在Scotty的一个小项目中使用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
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"))