From 22d07de97101ec022ec740c889b02a89e41aa043 Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sat, 8 Jun 2019 13:46:37 +1200 Subject: [PATCH] Init module. --- .gitignore | 1 + ChangeLog.md | 5 ++++ LICENSE | 33 +++++++++++---------- README.md | 6 ++-- Setup.hs | 2 ++ stylish-haskell.cabal | 67 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 95 insertions(+), 19 deletions(-) create mode 100644 ChangeLog.md create mode 100644 Setup.hs create mode 100644 stylish-haskell.cabal diff --git a/.gitignore b/.gitignore index 82f3a88..52f6d19 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ cabal.project.local cabal.project.local~ .HTF/ .ghc.environment.* +*~ diff --git a/ChangeLog.md b/ChangeLog.md new file mode 100644 index 0000000..4374ac9 --- /dev/null +++ b/ChangeLog.md @@ -0,0 +1,5 @@ +# Revision history for stylish-haskell + +## 0.0.1 -- YYYY-mm-dd + +* First version. Released on an unsuspecting world. diff --git a/LICENSE b/LICENSE index 3481ddd..4b1c024 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,20 @@ -MIT License - Copyright (c) 2019 Adrian Cochrane -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 72f1d1c..0a1a3ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ -# stylish-haskell -Generic CSS style engine for Haskell +# Stylish Haskell +Generic CSS style engine for Haskell, intended to aid the development of new browser engines. + +Stylish Haskell implements CSS selection and cascade (but not inheritance) independant of the CSS at-rules and properties understood by the caller. diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/stylish-haskell.cabal b/stylish-haskell.cabal new file mode 100644 index 0000000..2f7c3ed --- /dev/null +++ b/stylish-haskell.cabal @@ -0,0 +1,67 @@ +-- Initial stylish-haskell.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/ + +-- The name of the package. +name: stylish-haskell + +-- The package version. See the Haskell package versioning policy (PVP) +-- for standards guiding when and how versions should be incremented. +-- https://wiki.haskell.org/Package_versioning_policy +-- PVP summary: +-+------- breaking API changes +-- | | +----- non-breaking API additions +-- | | | +--- code changes with no API change +version: 0.0.1 + +-- A short (one-line) description of the package. +synopsis: Apply CSS styles to a document tree. + +-- A longer description of the package. +-- description: + +-- The license under which the package is released. +license: MIT + +-- The file containing the license text. +license-file: LICENSE + +-- The package author(s). +author: Adrian Cochrane + +-- An email address to which users can send suggestions, bug reports, and +-- patches. +maintainer: alcinnz@lavabit.com + +-- A copyright notice. +-- copyright: + +category: Language + +build-type: Simple + +-- Extra files to be distributed with the package, such as examples or a +-- README. +extra-source-files: ChangeLog.md, README.md + +-- Constraint on the version of Cabal needed to build this package. +cabal-version: >=1.10 + + +library + -- Modules exported by the library. + -- exposed-modules: + + -- Modules included in this library but not exported. + -- other-modules: + + -- LANGUAGE extensions used by modules in this package. + -- other-extensions: + + -- Other library packages from which modules are imported. + build-depends: base >=4.9 && <4.10 + + -- Directories containing source files. + -- hs-source-dirs: + + -- Base language which the package is written in. + default-language: Haskell2010 + -- 2.30.2