Created
September 3, 2016 15:40
-
-
Save sozysozbot/928ea6862ac638fee4db52a3d8907250 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
co = ".bcdfgjklmnprstvxz" | |
vo = "aeiou" | |
vovo = ["ai","ei","oi","au"] | |
cv = do | |
c <- co | |
v <- vo | |
return [c,v] | |
cv'v = do | |
c <- co | |
v <- vo | |
w <- vo | |
return [c,v,'\'',w] | |
cy = do | |
c <- co | |
return $ c:"y." | |
cvv = do | |
c <- co | |
vv <- vovo | |
return $ c:vv | |
iV_uV = do | |
iu <- "iu" | |
v <- vo | |
return ['.',iu,v] | |
main = print (cv ++ cv'v ++ cy ++ cvv ++ iV_uV) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment