```ruby
name "cabal-update"

build do
  # clean out any previous installation details
  command "rm -rf ~/.cabal ~/.ghc"
  # pull in latest package db
  command "/usr/bin/cabal update"
end
```

Remove cleanup commands; Use installed cabal path
user
```ruby
name "cabal-update"

build do
  # pull in latest package db
  command "#{install_dir}/embedded/bin/cabal update"
end
```
assistant