Created
October 31, 2016 13:41
-
-
Save andrewthad/b3cb6aca69000ac342d4eee24c4e6eb1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE UndecidableInstances #-} | |
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE KindSignatures #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE InstanceSigs #-} | |
{-# LANGUAGE ExistentialQuantification #-} | |
import Data.Singletons | |
import Data.Singletons.Prelude | |
import Data.Singletons.TH | |
main :: IO () | |
main = putStrLn "Hello world" | |
$(singletons [d| | |
data Item | |
= AccessPointName | |
| Action | |
| ApplicationProtocol | |
| Attack | |
| AttackCode | |
| AuthenticationMethod | |
| Bssid | |
| Command | |
| CommandArguments | |
| ControllerIp | |
| ControllerName | |
| Counter | |
| Dismissed | |
| DestinationCategories | |
| DestinationCity | |
| DestinationCountry | |
| DestinationHostName | |
| DestinationInterface | |
| DestinationIp | |
| DestinationLocation | |
| DestinationNattedIp | |
| DestinationNattedPort | |
| DestinationPort | |
| DestinationUser | |
| DestinationZone | |
| ElapsedTime | |
| HostCategories | |
| HostCity | |
| HostCountry | |
| HostIp | |
| HostLocation | |
| HostName | |
| HttpMethod | |
| HttpReplyBytes | |
| HttpReplyCode | |
| IdentificationCode | |
| InterfaceBytesPerSecond | |
| InterfaceName | |
| InterfaceStatistic | |
| InterfaceTotalBytes | |
| LogLevel | |
| MimeType | |
| NetworkProtocol | |
| Notification | |
| OriginalSeverity | |
| Process | |
| Raw | |
| ReportingIp | |
| SecurityRule | |
| ServerCategories | |
| ServerIp | |
| ServerName | |
| Service | |
| SessionId | |
| SourceCategories | |
| SourceCity | |
| SourceCountry | |
| SourceHostName | |
| SourceInterface | |
| SourceIp | |
| SourceLocation | |
| SourceNattedIp | |
| SourceNattedPort | |
| SourcePort | |
| SourceUser | |
| SourceZone | |
| StartTime | |
| TaskId | |
| TransportDirection | |
| TransportProtocol | |
| Triggers | |
| Url | |
| UrlCategory | |
| UrlHost | |
| UrlPath | |
| UserIp | |
| UserMac | |
| UserName | |
| VirtualSystem | |
deriving (Show,Read,Eq,Ord,Bounded,Enum) | |
|]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment