use cabal build
add pattern for CNAME
minor changes