packages feed

eros 0.0.0.0 → 0.1.0.0

raw patch · 3 files changed

+9/−23 lines, 3 filesdep ~aesondep ~bytestringdep ~containersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, bytestring, containers, text

API changes (from Hackage documentation)

- Text.Eros.Message: type Message = Text
- Text.Eros.Message: type RestOf = Text
- Text.Eros.Message: type Score = Int
+ Paths_eros: getBinDir :: IO FilePath
+ Paths_eros: getDataDir :: IO FilePath
+ Paths_eros: getDataFileName :: FilePath -> IO FilePath
+ Paths_eros: getLibDir :: IO FilePath
+ Paths_eros: getLibexecDir :: IO FilePath
+ Paths_eros: getSysconfDir :: IO FilePath
+ Paths_eros: version :: Version
+ Text.Eros.Phraselist: Chat :: ErosList
+ Text.Eros.Phraselist: Conspiracy :: ErosList
+ Text.Eros.Phraselist: DrugAdvocacy :: ErosList
+ Text.Eros.Phraselist: Forums :: ErosList
+ Text.Eros.Phraselist: Gambling :: ErosList
+ Text.Eros.Phraselist: Games :: ErosList
+ Text.Eros.Phraselist: Gore :: ErosList
+ Text.Eros.Phraselist: IdTheft :: ErosList
+ Text.Eros.Phraselist: IllegalDrugs :: ErosList
+ Text.Eros.Phraselist: Intolerance :: ErosList
+ Text.Eros.Phraselist: LegalDrugs :: ErosList
+ Text.Eros.Phraselist: Malware :: ErosList
+ Text.Eros.Phraselist: Music :: ErosList
+ Text.Eros.Phraselist: News :: ErosList
+ Text.Eros.Phraselist: Nudism :: ErosList
+ Text.Eros.Phraselist: Peer2Peer :: ErosList
+ Text.Eros.Phraselist: Personals :: ErosList
+ Text.Eros.Phraselist: PhraseAlmostTree :: Text -> Int -> [PhraseAlmostTree] -> PhraseAlmostTree
+ Text.Eros.Phraselist: Pornography :: ErosList
+ Text.Eros.Phraselist: Proxies :: ErosList
+ Text.Eros.Phraselist: SecretSocieties :: ErosList
+ Text.Eros.Phraselist: SelfLabeling :: ErosList
+ Text.Eros.Phraselist: Sport :: ErosList
+ Text.Eros.Phraselist: Translation :: ErosList
+ Text.Eros.Phraselist: UpstreamFilter :: ErosList
+ Text.Eros.Phraselist: Violence :: ErosList
+ Text.Eros.Phraselist: WarezHacking :: ErosList
+ Text.Eros.Phraselist: Weapons :: ErosList
+ Text.Eros.Phraselist: Webmail :: ErosList
+ Text.Eros.Phraselist: data PhraseAlmostTree
+ Text.Eros.Phraselist: erosListPaths :: IO [FilePath]
+ Text.Eros.Phraselist: fromPAT :: PAT -> PhraseTree
+ Text.Eros.Phraselist: fromPhraseAlmostTree :: PAT -> PhraseTree
+ Text.Eros.Phraselist: patForest :: PhraseAlmostTree -> [PhraseAlmostTree]
+ Text.Eros.Phraselist: patPhrase :: PhraseAlmostTree -> Text
+ Text.Eros.Phraselist: patScore :: PhraseAlmostTree -> Int
+ Text.Eros.Phraselist: phraselistPath :: Phraselist t => t -> IO FilePath
+ Text.Eros.Phraselist: type PAT = PhraseAlmostTree

Files

eros.cabal view
@@ -1,5 +1,5 @@ name:                eros-version:             0.0.0.0+version:             0.1.0.0 synopsis:            A text censorship library. description:   A Haskell library for censoring text, using@@ -58,18 +58,16 @@       Text.Eros.Message       Text.Eros.Phrase       Text.Eros.Phraselist-  other-modules:       -      Paths_eros+  -- other-modules:          other-extensions:       FlexibleInstances     , OverloadedStrings-    , RankNTypes   build-depends:-      aeson       >=0.7  && <0.8-    , base        >=4.7  && <4.8-    , bytestring  >=0.10 && <0.11-    , containers  >=0.5  && <0.6-    , text        >=1.1  && <1.2+      aeson+    , base >=4.7 && <4.8+    , bytestring+    , containers+    , text   hs-source-dirs:      src/   default-language:    Haskell2010 
src/Text/Eros/Message.hs view
@@ -9,7 +9,7 @@  -- This module deals specifically with pieces of 'Text'. -module Text.Eros.Message (Message, RestOf, Score, messageScore) where+module Text.Eros.Message (messageScore) where  -- Here, we have all the imports. import           Data.List
src/Text/Eros/Phraselist.hs view
@@ -36,19 +36,7 @@ -- If you want to use one of the lists we already supply --  -module Text.Eros.Phraselist ( readPhraselist-                            , loadPhraselist-                            , readPhraseForest-                            , loadPhraseForest-                            , readPhraseFile-                            , loadPhraseFile-                            , readPhraseMap-                            , loadPhraseMap-                            , Phraselist-                            , PhraselistSet-                            , ErosList-                            , erosLists-                            ) where+module Text.Eros.Phraselist where  import           Control.Applicative ((<$>), (<*>)) import           Control.Monad (mzero, sequence)