cookbook 2.3.3.1 → 2.3.4.0
raw patch · 12 files changed
+62/−12 lines, 12 files
Files
- Cookbook/Essential/Common.hs +1/−1
- Cookbook/Essential/Continuous.hs +1/−2
- Cookbook/Essential/Meta.hs +7/−0
- Cookbook/Ingredients/Functional/Meta.hs +3/−0
- Cookbook/Ingredients/Lists/Meta.hs +9/−0
- Cookbook/Ingredients/Meta.hs +7/−0
- Cookbook/Ingredients/Tupples/Meta.hs +5/−0
- Cookbook/Project/Quill/Quill2/Meta.hs +9/−0
- Cookbook/Project/Quill/Quill2/Q2Api.hs +5/−4
- Cookbook/Project/Quill/Quill2/Q2Prelude.hs +0/−3
- Cookbook/Recipes/Meta.hs +13/−0
- cookbook.cabal +2/−2
Cookbook/Essential/Common.hs view
@@ -40,7 +40,7 @@ -- | Execute a function from the end of a list to the front. fromLast :: ([a] -> [a]) -> [a] -> [a] fromLast f c = rev $ f $ rev c- where rev [] = []+ where rev [] = [] -- Reimplementation of Md.rev rev (x:xs) = rev xs ++ [x] -- | After a certain number of an element, return the list.
Cookbook/Essential/Continuous.hs view
@@ -16,8 +16,8 @@ module Cookbook.Essential.Continuous where import qualified Cookbook.Essential.Common as Cm-import qualified Cookbook.Ingredients.Functional.Break as Br import qualified Cookbook.Ingredients.Lists.Access as Ac+import qualified Cookbook.Ingredients.Functional.Break as Br -- | Classifies items that can be modified by either a list or item. class Continuous list part where@@ -91,4 +91,3 @@ remove [] _ = [] remove x@(a:b) c = if take (length c) x == c then remove (restart x) c else a : remove b c where restart d = Cm.sub d (length c)-
+ Cookbook/Essential/Meta.hs view
@@ -0,0 +1,7 @@+module Cookbook.Essential.Meta(module Cookbook.Essential.IO+ ,module Cookbook.Essential.Continuous+ ,module Cookbook.Essential.Common) where++import Cookbook.Essential.IO+import Cookbook.Essential.Continuous+import Cookbook.Essential.Common
+ Cookbook/Ingredients/Functional/Meta.hs view
@@ -0,0 +1,3 @@+module Cookbook.Ingredients.Functional.Meta(module Cookbook.Ingredients.Functional.Break) where++import Cookbook.Ingredients.Functional.Break
+ Cookbook/Ingredients/Lists/Meta.hs view
@@ -0,0 +1,9 @@+module Cookbook.Ingredients.Lists.Meta (module Cookbook.Ingredients.Lists.Access,+ module Cookbook.Ingredients.Lists.Encompass,+ module Cookbook.Ingredients.Lists.Modify,+ module Cookbook.Ingredients.Lists.Stats) where++import Cookbook.Ingredients.Lists.Access+import Cookbook.Ingredients.Lists.Encompass+import Cookbook.Ingredients.Lists.Modify+import Cookbook.Ingredients.Lists.Stats
+ Cookbook/Ingredients/Meta.hs view
@@ -0,0 +1,7 @@+module Cookbook.Ingredients.Meta(module Cookbook.Ingredients.Lists.Meta,+ module Cookbook.Ingredients.Functional.Meta,+ module Cookbook.Ingredients.Tupples.Meta) where++import Cookbook.Ingredients.Tupples.Meta+import Cookbook.Ingredients.Lists.Meta+import Cookbook.Ingredients.Functional.Meta
+ Cookbook/Ingredients/Tupples/Meta.hs view
@@ -0,0 +1,5 @@+module Cookbook.Ingredients.Tupples.Meta(module Cookbook.Ingredients.Tupples.Look,+ module Cookbook.Ingredients.Tupples.Assemble) where++import Cookbook.Ingredients.Tupples.Look+import Cookbook.Ingredients.Tupples.Assemble
+ Cookbook/Project/Quill/Quill2/Meta.hs view
@@ -0,0 +1,9 @@+module Cookbook.Project.Quill.Quill2.Meta(module Cookbook.Project.Quill.Quill2.Q2Api,+ module Cookbook.Project.Quill.Quill2.Q2Io,+ module Cookbook.Project.Quill.Quill2.Q2Parse,+ module Cookbook.Project.Quill.Quill2.Q2Prelude) where++import Cookbook.Project.Quill.Quill2.Q2Api+import Cookbook.Project.Quill.Quill2.Q2Io+import Cookbook.Project.Quill.Quill2.Q2Parse+import Cookbook.Project.Quill.Quill2.Q2Prelude
Cookbook/Project/Quill/Quill2/Q2Api.hs view
@@ -16,6 +16,7 @@ import qualified Cookbook.Ingredients.Lists.Access as Ac import Cookbook.Project.Quill.Quill2.Q2Prelude+import Cookbook.Project.Quill.Quill2.Q2Parse -- | Get the name of a Quill. getQuillName :: Quill -> String@@ -75,7 +76,7 @@ (AList (_,b)) -> QuillSuccess $ (y, List (b:d)) : removeQuill x a (ATable _) -> error $ "Type Mismatch! Attempted to add Table type to List in table " ++ show qa QuillMultiple v -> QuillMultiple a- QuillMissing v -> QuillMissing a+ QuillMissing v -> QuillMissing a --M where a = case qa of (ATable (g,b,c)) -> g@@ -97,8 +98,8 @@ -- | Turn a Quill table into a string. toString :: Quill -> String toString (nm,typ) = case typ of- (List a) -> ("list(" ++ nm ++ "){" ++ Cm.flt (map (++ ";") a)) ++ "}"- (Table a) -> ("table(" ++ nm ++ "){" ++ Cm.flt (stringify a)) ++ "}"+ (List a) -> Cm.flt ["list(", nm, "){", Cm.flt (map (++ ";") a),"}"]+ (Table a) -> Cm.flt ["table(", nm, "){", Cm.flt (stringify a), "}"] where stringify [] = []- stringify ((a,b):xs) = (a ++ ":" ++ b ++ ";") : stringify xs+ stringify ((a,b):xs) = Cm.flt [a,":",b,";"] : stringify xs
Cookbook/Project/Quill/Quill2/Q2Prelude.hs view
@@ -1,6 +1,3 @@-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE InstanceSigs #-}-{-# LANGUAGE KindSignatures #-} {- | Module : Cookbook.Project.Quill.Quill2.Q2Prelude Copyright : (c) 2014 by Nate Pisarski
+ Cookbook/Recipes/Meta.hs view
@@ -0,0 +1,13 @@+module Cookbook.Recipes.Meta(module Cookbook.Recipes.Algorithm,+ module Cookbook.Recipes.Cline,+ module Cookbook.Recipes.DataStructures,+ module Cookbook.Recipes.Math,+ module Cookbook.Recipes.Sanitize,+ module Cookbook.Recipes.WordStats) where++import Cookbook.Recipes.Algorithm+import Cookbook.Recipes.Cline+import Cookbook.Recipes.DataStructures+import Cookbook.Recipes.Math+import Cookbook.Recipes.Sanitize+import Cookbook.Recipes.WordStats
cookbook.cabal view
@@ -3,7 +3,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 2.3.3.1+version: 2.3.4.0 synopsis: Tiered general-purpose libraries with domain-specific applications. description: Cookbook is a line of libraries covering a wide variety of Haskell applications. Every application that I make, I add its functions to Cookbook, turning Cookbook into an all-encompassing general-purpose library over time. The claim-to-fame for the library is its use of overloaded typeclasses, called "Continuities". license: BSD3@@ -16,7 +16,7 @@ build-type: Simple cabal-version: >=1.8 library - exposed-modules: Cookbook.Essential.Common, Cookbook.Essential.Continuous, Cookbook.Essential.IO, Cookbook.Project.Configuration.Configuration, Cookbook.Project.Preprocess.Preprocess, Cookbook.Ingredients.Functional.Break, Cookbook.Ingredients.Lists.Access, Cookbook.Ingredients.Lists.Modify, Cookbook.Ingredients.Lists.Stats, Cookbook.Ingredients.Tupples.Look, Cookbook.Ingredients.Tupples.Assemble, Cookbook.Recipes.Sanitize, Cookbook.Recipes.Math,Cookbook.Recipes.DataStructures,Cookbook.Recipes.Algorithm, Cookbook.Project.Quill.Quill, Cookbook.Recipes.Cline, Cookbook.Ingredients.Lists.Encompass, Cookbook.Project.Quill.Quill2.Q2Parse, Cookbook.Project.Quill.Quill2.Q2Prelude, Cookbook.Project.Quill.Quill2.Q2Api, Cookbook.Project.Quill.Quill2.Q2Io+ exposed-modules: Cookbook.Essential.Common, Cookbook.Essential.Continuous, Cookbook.Essential.IO, Cookbook.Project.Configuration.Configuration, Cookbook.Project.Preprocess.Preprocess, Cookbook.Ingredients.Functional.Break, Cookbook.Ingredients.Lists.Access, Cookbook.Ingredients.Lists.Modify, Cookbook.Ingredients.Lists.Stats, Cookbook.Ingredients.Tupples.Look, Cookbook.Ingredients.Tupples.Assemble, Cookbook.Recipes.Sanitize, Cookbook.Recipes.Math,Cookbook.Recipes.DataStructures,Cookbook.Recipes.Algorithm, Cookbook.Project.Quill.Quill, Cookbook.Recipes.Cline, Cookbook.Ingredients.Lists.Encompass, Cookbook.Project.Quill.Quill2.Q2Parse, Cookbook.Project.Quill.Quill2.Q2Prelude, Cookbook.Project.Quill.Quill2.Q2Api, Cookbook.Project.Quill.Quill2.Q2Io, Cookbook.Essential.Meta, Cookbook.Ingredients.Meta, Cookbook.Ingredients.Lists.Meta, Cookbook.Ingredients.Tupples.Meta, Cookbook.Ingredients.Functional.Meta, Cookbook.Recipes.Meta, Cookbook.Project.Quill.Quill2.Meta build-depends: base ==4.6.*, directory, strict source-repository head type: git