Add local cabal config file
Implement lazy takeEnd
Simplify lazy takeEnd