packages feed

lingo 0.1.0.1 → 0.2.0.0

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

languages.yml view
@@ -4451,7 +4451,8 @@   - Deliverfile   - Fastfile   - Gemfile-  - Gemfile.lock+  # Gemfile.lock is not valid ruby+  # - Gemfile.lock   - Guardfile   - Jarfile   - Mavenfile
lingo.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.4 build-type:          Custom name:                lingo-version:             0.1.0.1+version:             0.2.0.0 synopsis:            File extension based programming language detection description:         Lingo uses github/linguist's language registry to enable fast detection of a file path's programming langauge based on extension or filename. homepage:            https://github.com/tclem/lingo-haskell
test/Spec.hs view
@@ -12,6 +12,9 @@     it "can detect Ruby by filename" $       languageName <$> languageForPath "Rakefile" `shouldBe` Just "Ruby" +    it "Gemfile.lock is not Ruby" $+      languageName <$> languageForPath "Gemfile.lock" `shouldBe` Nothing+     it "returns Nothing for unknown files" $       languageName <$> languageForPath "noideawhatthisis" `shouldBe` Nothing @@ -22,4 +25,4 @@     it "parsed languages.yml" $ do       length languages `shouldBe` 519       length languagesByExtension `shouldBe` 1117-      length languagesByFileName `shouldBe` 235+      length languagesByFileName `shouldBe` 234