Commit 5d4f61a81c2f863e46032a705f1544d9ff61eab4
- Diff rendering mode:
- inline
- side by side
LICENSE
(26 / 0)
|   | |||
| 1 | Redistribution and use in source and binary forms, with or without | ||
| 2 | modification, are permitted provided that the following conditions are | ||
| 3 | met: | ||
| 4 | |||
| 5 | * Redistributions of source code must retain the above copyright | ||
| 6 | notice, this list of conditions and the following disclaimer. | ||
| 7 | |||
| 8 | * Redistributions in binary form must reproduce the above copyright | ||
| 9 | notice, this list of conditions and the following disclaimer in the | ||
| 10 | documentation and/or other materials provided with the distribution. | ||
| 11 | |||
| 12 | * The names of its contributors may not be used to endorse or promote | ||
| 13 | products derived from this software without specific prior written | ||
| 14 | permission. | ||
| 15 | |||
| 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 17 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | ||
| 18 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
| 19 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER | ||
| 20 | OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 21 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| 22 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 23 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 24 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 25 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|   | |||
| 1 | 1 | {- | | |
| 2 | 2 | Module : Text.ParserCombinators.Parsec.Rfc2234 | |
| 3 | Copyright : (c) 2005-02-10 by Peter Simons | ||
| 4 | License : GPL2 | ||
| 3 | Copyright : (c) 2007 Peter Simons | ||
| 4 | License : BSD3 | ||
| 5 | 5 | ||
| 6 | 6 | Maintainer : simons@cryp.to | |
| 7 | 7 | Stability : provisional |
|   | |||
| 1 | {-# OPTIONS -fglasgow-exts #-} | ||
| 2 | 1 | {- | | |
| 3 | 2 | Module : Text.ParserCombinators.Parsec.Rfc2821 | |
| 4 | Copyright : (c) 2005-04-29 by Peter Simons | ||
| 5 | License : GPL2 | ||
| 3 | Copyright : (c) 2007 Peter Simons | ||
| 4 | License : BSD3 | ||
| 6 | 5 | ||
| 7 | 6 | Maintainer : simons@cryp.to | |
| 8 | 7 | Stability : provisional | |
| 9 | Portability : Haskell 2-pre | ||
| 8 | Portability : portable | ||
| 10 | 9 | ||
| 11 | 10 | This module exports parser combinators for the grammar | |
| 12 | 11 | described in RFC2821, \"Simple Mail Transfer Protocol\", | |
| … | … | ||
| 20 | 20 | import Text.ParserCombinators.Parsec.Error | |
| 21 | 21 | import Data.List ( intersperse ) | |
| 22 | 22 | import Data.Char ( toLower ) | |
| 23 | import Data.Typeable | ||
| 24 | 23 | import Text.ParserCombinators.Parsec.Rfc2234 | |
| 25 | 24 | ||
| 26 | 25 | ---------------------------------------------------------------------- | |
| … | … | ||
| 33 | 33 | | HaveRcptTo | |
| 34 | 34 | | HaveData | |
| 35 | 35 | | HaveQuit | |
| 36 | deriving (Enum, Bounded, Eq, Ord, Show, Typeable) | ||
| 36 | deriving (Enum, Bounded, Eq, Ord, Show) | ||
| 37 | 37 | ||
| 38 | 38 | data Event | |
| 39 | 39 | = Greeting -- ^ reserved for the user | |
| … | … | ||
| 184 | 184 | -- two mailboxes for equality, the hostname is case-insensitive. | |
| 185 | 185 | ||
| 186 | 186 | data Mailbox = Mailbox [String] String String | |
| 187 | deriving (Typeable) | ||
| 188 | 187 | ||
| 189 | 188 | instance Eq Mailbox where | |
| 190 | 189 | lhs == rhs = (norm lhs) == (norm rhs) |
|   | |||
| 1 | 1 | {- | | |
| 2 | 2 | Module : Text.ParserCombinators.Parsec.Rfc2822 | |
| 3 | Copyright : (c) 2005-02-10 by Peter Simons | ||
| 4 | License : GPL2 | ||
| 3 | Copyright : (c) 2007 by Peter Simons | ||
| 4 | License : BSD3 | ||
| 5 | 5 | ||
| 6 | 6 | Maintainer : simons@cryp.to | |
| 7 | 7 | Stability : provisional |

