mirror of
https://github.com/amix/vimrc
synced 2025-07-31 01:35:01 +08:00
Updated plugins
This commit is contained in:
@ -2,9 +2,11 @@ snippet mod
|
||||
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` exposing (${1})
|
||||
${0}
|
||||
snippet imp
|
||||
import ${0:List}
|
||||
import ${0:Http}
|
||||
snippet impe
|
||||
import ${1:List} exposing (${0:map})
|
||||
import ${1:Html} exposing (${0:..})
|
||||
snippet impae
|
||||
import ${1:Json.Encode} as ${2:Encode} exposing (${0:Value})
|
||||
snippet fn
|
||||
${1:fn} : ${2:a} -> ${3:a}
|
||||
$1 ${4} =
|
||||
@ -49,3 +51,8 @@ snippet ty
|
||||
snippet tya
|
||||
type alias ${1:Model} =
|
||||
${0}
|
||||
snippet test
|
||||
test "${1}" <| \_ -> $0
|
||||
snippet doc
|
||||
{-| ${0}
|
||||
-}
|
||||
|
@ -103,7 +103,22 @@ snippet spec
|
||||
spec :: Spec
|
||||
spec =
|
||||
describe "${1}" $ do
|
||||
$0
|
||||
it "${2}" $
|
||||
$0
|
||||
snippet specf
|
||||
module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` (main, spec) where
|
||||
|
||||
import Test.Hspec
|
||||
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
|
||||
|
||||
main :: IO ()
|
||||
main = hspecWith defaultConfig {configFastFail = True} spec
|
||||
|
||||
spec :: Spec
|
||||
spec =
|
||||
describe "${1}" $ do
|
||||
it "${2}" $
|
||||
$0
|
||||
snippet desc
|
||||
describe "${1}" $ do
|
||||
$0
|
||||
@ -113,3 +128,5 @@ snippet it
|
||||
snippet itp
|
||||
it "${1}" $ property $
|
||||
$0
|
||||
snippet sb
|
||||
\`shouldBe\` $0
|
||||
|
Reference in New Issue
Block a user