Skip to content

Instantly share code, notes, and snippets.

@raine
Created October 14, 2014 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raine/3d7ff9d8f20212b2b669 to your computer and use it in GitHub Desktop.
Save raine/3d7ff9d8f20212b2b669 to your computer and use it in GitHub Desktop.
module TitleCase (titleCase) where
import Data.Char
import Debug.Trace
titleCase :: String -> String -> String
titleCase minor title = "a"
capitalize :: String -> String
capitalize (x:xs) = toUpper x : xs
splitOn :: (a -> Bool) -> [a] -> [[a]]
splitOn _ [] = []
splitOn f l@(x:xs)
| f x = splitOn f xs
| otherwise = let (h,t) = break f l in h:(splitOn f t)
-- myfun a b | trace ("myfun " ++ show a ++ " " ++ show b) False = undefined
-- myfun a b = ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment