beforeRunningCommand nop command #!/bin/bash NAME=${TM_FILENAME%.hs} if [[ -z "$NAME" ]]; then NAME="Main" fi cat <<SNIPPET module \${1:$NAME} \${2/.+/( /m}\${2:function}\${2/.+/ ) /m}where \$0 SNIPPET input none name module … output insertAsSnippet scope source.haskell tabTrigger mod uuid 156D0588-A61A-4419-9C71-6E47320A4DA5