Skip to content

Commit

Permalink
Major cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Mar 26, 2012
1 parent 90bc6a5 commit 24b17ae
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 28 deletions.
28 changes: 14 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ website/_cache
website/docs
website/hakyll

Text/Blaze/Html4/FrameSet.hs
Text/Blaze/Html4/FrameSet/Attributes.hs
Text/Blaze/Html4/Strict.hs
Text/Blaze/Html4/Strict/Attributes.hs
Text/Blaze/Html4/Transitional.hs
Text/Blaze/Html4/Transitional/Attributes.hs
Text/Blaze/Html5.hs
Text/Blaze/Html5/Attributes.hs
Text/Blaze/XHtml1/FrameSet.hs
Text/Blaze/XHtml1/FrameSet/Attributes.hs
Text/Blaze/XHtml1/Strict.hs
Text/Blaze/XHtml1/Strict/Attributes.hs
Text/Blaze/XHtml1/Transitional.hs
Text/Blaze/XHtml1/Transitional/Attributes.hs
src/Text/Blaze/Html4/FrameSet.hs
src/Text/Blaze/Html4/FrameSet/Attributes.hs
src/Text/Blaze/Html4/Strict.hs
src/Text/Blaze/Html4/Strict/Attributes.hs
src/Text/Blaze/Html4/Transitional.hs
src/Text/Blaze/Html4/Transitional/Attributes.hs
src/Text/Blaze/Html5.hs
src/Text/Blaze/Html5/Attributes.hs
src/Text/Blaze/XHtml1/FrameSet.hs
src/Text/Blaze/XHtml1/FrameSet/Attributes.hs
src/Text/Blaze/XHtml1/Strict.hs
src/Text/Blaze/XHtml1/Strict/Attributes.hs
src/Text/Blaze/XHtml1/Transitional.hs
src/Text/Blaze/XHtml1/Transitional/Attributes.hs
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: haskell
before_script:
- "cabal install HUnit QuickCheck test-framework test-framework-hunit test-framework-quickcheck2"
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BENCHMARK_FLAGS = --resamples 10000

# Generate the actual HTML combinators
combinators:
runghc Util/GenerateHtmlCombinators.hs
runghc -isrc src/Util/GenerateHtmlCombinators.hs

# Copy the docs the website directory
website-docs:
Expand Down
5 changes: 3 additions & 2 deletions blaze-from-html.cabal.blaze-from-html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ Build-type: Simple
Cabal-version: >= 1.6

Executable blaze-from-html
Ghc-Options: -Wall
Main-Is: Util/BlazeFromHtml.hs
Ghc-Options: -Wall
Hs-source-dirs: src
Main-Is: Util/BlazeFromHtml.hs

Other-Modules:
Util.GenerateHtmlCombinators
Expand Down
38 changes: 29 additions & 9 deletions blaze-html.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,16 @@ Description:
starting point, as well as this tutorial:
<http://jaspervdj.be/blaze/tutorial.html>.

Build-type: Simple
Cabal-version: >=1.6
Build-type: Simple
Cabal-version: >=1.6

Extra-source-files:
Util/Sanitize.hs
Util/GenerateHtmlCombinators.hs
src/Util/Sanitize.hs
src/Util/GenerateHtmlCombinators.hs

Library
Ghc-Options: -Wall
Hs-source-dirs: src
Ghc-Options: -Wall

Exposed-modules:
Text.Blaze
Expand All @@ -48,10 +49,29 @@ Library
Text.Blaze.XHtml1.Transitional.Attributes

Build-depends:
base >= 4 && < 5,
blaze-builder >= 0.2 && < 0.4,
text >= 0.10,
bytestring >= 0.9
base >= 4 && < 5,
blaze-builder >= 0.2 && < 0.4,
text >= 0.10 && < 0.12,
bytestring >= 0.9 && < 0.10

Test-suite websockets-tests
Type: exitcode-stdio-1.0
Hs-source-dirs: src tests
Main-is: TestSuite.hs
Ghc-options: -Wall

Build-depends:
HUnit >= 1.2 && < 1.3,
QuickCheck >= 2.4 && < 2.5,
containers >= 0.3 && < 0.5,
test-framework >= 0.4 && < 0.7,
test-framework-hunit >= 0.2 && < 0.3,
test-framework-quickcheck2 >= 0.2 && < 0.3,
-- Copied from regular dependencies...
base >= 4 && < 5,
blaze-builder >= 0.2 && < 0.4,
text >= 0.10 && < 0.12,
bytestring >= 0.9 && < 0.10

Source-repository head
Type: git
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ writeHtmlVariant htmlVariant = do
, unlines (map makeAttribute sortedAttributes)
]
where
basePath = "Text" </> "Blaze" </> foldl1 (</>) version'
basePath = "src" </> "Text" </> "Blaze" </> foldl1 (</>) version'
modulName = getModuleName htmlVariant
attributeModuleName = getAttributeModuleName htmlVariant
attributes' = attributes htmlVariant
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/TestSuite.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- | Main module to run all tests.
--
module TestSuite where
module Main where

import Test.Framework (defaultMain, testGroup)

Expand Down

0 comments on commit 24b17ae

Please sign in to comment.