X-Git-Url: https://git.martlubbers.net/?p=cloogle-irc.git;a=blobdiff_plain;f=test.icl;h=fce029920c1999262e7912e2b14122fe568b229b;hp=da69fcd1f19837946ce0161bb427d81feba6c72a;hb=aa96c27332a624f88b0031415374db8f5f6e71eb;hpb=a8fbb81c3108a913c6496553346037805157b9c0 diff --git a/test.icl b/test.icl index da69fcd..fce0299 100644 --- a/test.icl +++ b/test.icl @@ -6,11 +6,12 @@ import Data.Maybe import StdEnv import IRC -Start :: [String] -Start = map toString - [NICK "clooglebot" - ,USER "cloogle" 0 "Cloogle bot" - ,JOIN $ Right [("#cloogle", Nothing)] - ,PRIVMSG "#cloogle" "Hello world" +from Text import class Text(concat), instance Text String + +Start = concat $ map toString + [NICK "clooglebot" Nothing + ,USER "cloogle" "0" "cloogle" "Cloogle bot" + ,JOIN (CSepList ["#cloogle"]) Nothing + ,PRIVMSG (CSepList ["#cloogle"]) "Hello world" ,QUIT Nothing ]