diff --git a/shake-ext.cabal b/shake-ext.cabal
--- a/shake-ext.cabal
+++ b/shake-ext.cabal
@@ -1,5 +1,5 @@
 name:                shake-ext
-version:             0.2.0.0
+version:             0.2.0.1
 synopsis:            Helper functions for linting with shake 
 description:         This package provides several linters out of the box, as well as functionality for building ATS projects with [shake](http://shakebuild.com/).
 homepage:            https://hub.darcs.net/vmchale/shake-ext
diff --git a/src/Development/Shake/ATS.hs b/src/Development/Shake/ATS.hs
--- a/src/Development/Shake/ATS.hs
+++ b/src/Development/Shake/ATS.hs
@@ -46,7 +46,8 @@
 
         let sourceFile = "ats-src/" ++ (dropDirectory1 out -<.> "dats")
         need [sourceFile]
-        (Exit c, Stderr _) :: (Exit, Stderr String) <- atsCommand sourceFile out
+        (Exit c, Stderr err) :: (Exit, Stderr String) <- atsCommand sourceFile out
+        cmd_ [Stdin err] Shell "pats-filter"
         if c /= ExitSuccess
             then error "patscc failure"
             else pure ()
