git.iko.soy/typeable/servant
on master help sign in
Remove servant-blaze and servant-lucid
73bc0e3Oleg Grenrus
servant-blaze/LICENSEdeleted−30
@@ -1,30 +0,0 @@
1−Copyright (c) 2015-2016, Servant Contributors
2−
3−All rights reserved.
4−
5−Redistribution and use in source and binary forms, with or without
6−modification, are permitted provided that the following conditions are met:
7−
8− * Redistributions of source code must retain the above copyright
9− notice, this list of conditions and the following disclaimer.
10−
11− * Redistributions in binary form must reproduce the above
12− copyright notice, this list of conditions and the following
13− disclaimer in the documentation and/or other materials provided
14− with the distribution.
15−
16− * Neither the name of Julian K. Arni nor the names of other
17− contributors may be used to endorse or promote products derived
18− from this software without specific prior written permission.
19−
20−THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21−"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22−LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23−A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24−OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25−SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26−LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27−DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28−THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29−(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30−OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
servant-blaze/Setup.hsdeleted−2
@@ -1,2 +0,0 @@
1−import Distribution.Simple
2−main = defaultMain
servant-blaze/include/overlapping-compat.hdeleted−8
@@ -1,8 +0,0 @@
1−#if __GLASGOW_HASKELL__ >= 710
2−#define OVERLAPPABLE_ {-# OVERLAPPABLE #-}
3−#define OVERLAPPING_ {-# OVERLAPPING #-}
4−#else
5−{-# LANGUAGE OverlappingInstances #-}
6−#define OVERLAPPABLE_
7−#define OVERLAPPING_
8−#endif
servant-blaze/servant-blaze.cabaldeleted−34
@@ -1,34 +0,0 @@
1−-- Initial servant-blaze.cabal generated by cabal init. For further
2−-- documentation, see http://haskell.org/cabal/users-guide/
3−
4−name: servant-blaze
5−version: 0.7.1
6−synopsis: Blaze-html support for servant
7−-- description:
8−homepage: http://haskell-servant.readthedocs.org/
9−license: BSD3
10−license-file: LICENSE
11−author: Servant Contributors
12−maintainer: haskell-servant-maintainers@googlegroups.com
13−copyright: 2015-2016 Servant Contributors
14−category: Web
15−build-type: Simple
16−extra-source-files: include/*.h
17−cabal-version: >=1.10
18−bug-reports: http://github.com/haskell-servant/servant/issues
19−source-repository head
20− type: git
21− location: http://github.com/haskell-servant/servant.git
22−
23−library
24− exposed-modules: Servant.HTML.Blaze
25− -- other-modules:
26− -- other-extensions:
27− build-depends: base >=4.7 && <5
28− , servant == 0.7.*
29− , http-media
30− , blaze-html
31− hs-source-dirs: src
32− default-language: Haskell2010
33− include-dirs: include
34− ghc-options: -Wall
servant-blaze/src/Servant/HTML/Blaze.hsdeleted−35
@@ -1,35 +0,0 @@
1−{-# LANGUAGE CPP #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE FlexibleInstances #-}
4−{-# LANGUAGE MultiParamTypeClasses #-}
5−{-# LANGUAGE OverloadedStrings #-}
6−
7−#include "overlapping-compat.h"
8−-- | An @HTML@ empty data type with `MimeRender` instances for @blaze-html@'s
9−-- `ToMarkup` class and `Html` datatype.
10−-- You should only need to import this module for it's instances and the
11−-- `HTML` datatype.:
12−--
13−-- >>> type Eg = Get '[HTML] a
14−--
15−-- Will then check that @a@ has a `ToMarkup` instance, or is `Html`.
16−module Servant.HTML.Blaze where
17−
18−import Data.Typeable (Typeable)
19−import qualified Network.HTTP.Media as M
20−import Servant.API (Accept (..), MimeRender (..))
21−import Text.Blaze.Html (Html, ToMarkup, toHtml)
22−import Text.Blaze.Html.Renderer.Utf8 (renderHtml)
23−
24−data HTML deriving Typeable
25−
26−-- | @text/html;charset=utf-8@
27−instance Accept HTML where
28− contentType _ = "text" M.// "html" M./: ("charset", "utf-8")
29−
30−instance OVERLAPPABLE_ ToMarkup a => MimeRender HTML a where
31− mimeRender _ = renderHtml . toHtml
32−
33−instance OVERLAPPING_ MimeRender HTML Html where
34− mimeRender _ = renderHtml
35−
servant-blaze/tinc.yamldeleted−3
@@ -1,3 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
servant-lucid/LICENSEdeleted−30
@@ -1,30 +0,0 @@
1−Copyright (c) 2015-2016, Servant Contributors
2−
3−All rights reserved.
4−
5−Redistribution and use in source and binary forms, with or without
6−modification, are permitted provided that the following conditions are met:
7−
8− * Redistributions of source code must retain the above copyright
9− notice, this list of conditions and the following disclaimer.
10−
11− * Redistributions in binary form must reproduce the above
12− copyright notice, this list of conditions and the following
13− disclaimer in the documentation and/or other materials provided
14− with the distribution.
15−
16− * Neither the name of Julian K. Arni nor the names of other
17− contributors may be used to endorse or promote products derived
18− from this software without specific prior written permission.
19−
20−THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21−"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22−LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23−A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24−OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25−SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26−LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27−DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28−THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29−(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30−OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
servant-lucid/Setup.hsdeleted−2
@@ -1,2 +0,0 @@
1−import Distribution.Simple
2−main = defaultMain
servant-lucid/include/overlapping-compat.hdeleted−8
@@ -1,8 +0,0 @@
1−#if __GLASGOW_HASKELL__ >= 710
2−#define OVERLAPPABLE_ {-# OVERLAPPABLE #-}
3−#define OVERLAPPING_ {-# OVERLAPPING #-}
4−#else
5−{-# LANGUAGE OverlappingInstances #-}
6−#define OVERLAPPABLE_
7−#define OVERLAPPING_
8−#endif
servant-lucid/servant-lucid.cabaldeleted−34
@@ -1,34 +0,0 @@
1−-- Initial servant-lucid.cabal generated by cabal init. For further
2−-- documentation, see http://haskell.org/cabal/users-guide/
3−
4−name: servant-lucid
5−version: 0.7.1
6−synopsis: Servant support for lucid
7−-- description:
8−homepage: http://haskell-servant.readthedocs.org/
9−license: BSD3
10−license-file: LICENSE
11−author: Servant Contributors
12−maintainer: haskell-servant-maintainers@googlegroups.com
13−copyright: 2015-2016 Servant Contributors
14−category: Web
15−build-type: Simple
16−extra-source-files: include/*.h
17−cabal-version: >=1.10
18−bug-reports: http://github.com/haskell-servant/servant/issues
19−source-repository head
20− type: git
21− location: http://github.com/haskell-servant/servant.git
22−
23−library
24− exposed-modules: Servant.HTML.Lucid
25− -- other-modules:
26− -- other-extensions:
27− build-depends: base >=4.7 && <5
28− , http-media
29− , lucid
30− , servant == 0.7.*
31− hs-source-dirs: src
32− default-language: Haskell2010
33− include-dirs: include
34− ghc-options: -Wall
servant-lucid/src/Servant/HTML/Lucid.hsdeleted−36
@@ -1,36 +0,0 @@
1−{-# LANGUAGE CPP #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE FlexibleInstances #-}
4−{-# LANGUAGE MultiParamTypeClasses #-}
5−{-# LANGUAGE OverloadedStrings #-}
6−
7−#include "overlapping-compat.h"
8−
9−-- | An @HTML@ empty data type with `MimeRender` instances for @lucid@'s
10−-- `ToHtml` class and `Html` datatype.
11−-- You should only need to import this module for it's instances and the
12−-- `HTML` datatype.:
13−--
14−-- >>> type Eg = Get '[HTML] a
15−--
16−-- Will then check that @a@ has a `ToHtml` instance, or is `Html`.
17−module Servant.HTML.Lucid where
18−
19−import Data.Typeable (Typeable)
20−import Lucid (Html, ToHtml (..), renderBS)
21−import qualified Network.HTTP.Media as M
22−import Servant.API (Accept (..), MimeRender (..))
23−
24−data HTML deriving Typeable
25−
26−-- | @text/html;charset=utf-8@
27−instance Accept HTML where
28− contentType _ = "text" M.// "html" M./: ("charset", "utf-8")
29−
30−instance OVERLAPPABLE_
31− ToHtml a => MimeRender HTML a where
32− mimeRender _ = renderBS . toHtml
33−
34−instance OVERLAPPING_
35− MimeRender HTML (Html a) where
36− mimeRender _ = renderBS
servant-lucid/tinc.yamldeleted−3
@@ -1,3 +0,0 @@
1−dependencies:
2− - name: servant
3− path: ../servant
sources.txt−2
@@ -4,6 +4,4 @@ servant-client
4servant-docs
4servant-docs
5servant-foreign
5servant-foreign
6servant-js
6servant-js
7−servant-blaze
8−servant-lucid
9servant-mock
7servant-mock
stack-ghc-7.8.4.yaml−2
@@ -1,12 +1,10 @@
1flags: {}
1flags: {}
2packages:
2packages:
3- servant/
3- servant/
4−- servant-blaze/
5- servant-client/
4- servant-client/
6- servant-docs/
5- servant-docs/
7- servant-foreign/
6- servant-foreign/
8- servant-js/
7- servant-js/
9−- servant-lucid/
10- servant-mock/
8- servant-mock/
11- servant-server/
9- servant-server/
12extra-deps:
10extra-deps:
stack-ghc-8.0.1.yaml−4
@@ -3,12 +3,10 @@ flags:
3 old-locale: false
3 old-locale: false
4packages:
4packages:
5- servant/
5- servant/
6−- servant-blaze/
7- servant-client/
6- servant-client/
8- servant-docs/
7- servant-docs/
9- servant-foreign/
8- servant-foreign/
10- servant-js/
9- servant-js/
11−- servant-lucid/
12- servant-mock/
10- servant-mock/
13- servant-server/
11- servant-server/
14setup-info:
12setup-info:
@@ -48,7 +46,6 @@ extra-deps:
48- bytestring-builder-0.10.6.0.0
46- bytestring-builder-0.10.6.0.0
49- bytestring-conversion-0.3.1
47- bytestring-conversion-0.3.1
50- case-insensitive-1.2.0.6
48- case-insensitive-1.2.0.6
51−- cassava-0.4.5.0
52- cereal-0.5.1.0
49- cereal-0.5.1.0
53- charset-0.3.7.1
50- charset-0.3.7.1
54- cmdargs-0.10.14
51- cmdargs-0.10.14
@@ -91,7 +88,6 @@ extra-deps:
91- language-ecmascript-0.17.1.0
88- language-ecmascript-0.17.1.0
92- lens-4.14
89- lens-4.14
93- lifted-base-0.2.3.6
90- lifted-base-0.2.3.6
94−- lucid-2.9.5
95- memory-0.12
91- memory-0.12
96- mime-types-0.1.0.7
92- mime-types-0.1.0.7
97- mmorph-1.0.6
93- mmorph-1.0.6
stack.yaml−2
@@ -3,12 +3,10 @@ flags:
3 example: false
3 example: false
4packages:
4packages:
5- servant/
5- servant/
6−- servant-blaze/
7- servant-client/
6- servant-client/
8- servant-docs/
7- servant-docs/
9- servant-foreign/
8- servant-foreign/
10- servant-js/
9- servant-js/
11−- servant-lucid/
12- servant-mock/
10- servant-mock/
13- servant-server/
11- servant-server/
14- doc/tutorial
12- doc/tutorial