diff --git a/ghcid b/ghcid
index 998f9dad94302880253f617d13d79eccfe7b9182..10f6c8868d1deee54f69decd8f8886f930a8f702 100755
--- a/ghcid
+++ b/ghcid
@@ -7,7 +7,9 @@
         --warnings \
         "--command=cabal repl lib:quasar-network" \
         "--test=:! \
+          zsh -c 'print -P %F{yellow}Cleaning repository to ensure template haskell is run%f' && \
+          cabal clean && \
           cabal test --test-show-details=direct --ghc-option -fdiagnostics-color=always && \
           cabal build --ghc-option -fdiagnostics-color=always && \
-          zsh -c 'print -P %F{green}build and tests passed%f' \
+          zsh -c 'print -P %F{green}Build and tests passed%f' \
         "