Skip to content

Instantly share code, notes, and snippets.

View tatac1's full-sized avatar

Toru Tomita tatac1

  • Cyber Defense Institute, Inc.
  • Japan
View GitHub Profile
module SyslogTypes where
data Priority =
DEBUG -- ^ Debug messages
| INFO -- ^ Information
| NOTICE -- ^ Normal runtime conditions
| WARNING -- ^ General Warnings
| ERROR -- ^ General Errors
| CRITICAL -- ^ Severe situations
| ALERT -- ^ Take immediate action
{-# LANGUAGE OverloadedStrings #-}
module ParsecRFC3164
(
parseRFC3164
, RFC3164
, PRI
, Severity
, Facility
, Header
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Control.Monad.Trans.Class (lift)
import Control.Monad.IO.Class
import Control.Monad.Trans.Control ()
import Data.Conduit
import Data.Conduit.Network
import Data.Conduit.Attoparsec
@tatac1
tatac1 / gist:5494055
Created May 1, 2013 06:47
install tag-soup
cabal install fast-tagsoup --extra-include=$(brew --prefix icu4c)/include --extra-lib-dirs=$(brew --prefix icu4c)/lib/