Skip to content

Instantly share code, notes, and snippets.

@deemp
Created March 13, 2022 09:11
Show Gist options
  • Select an option

  • Save deemp/0771fc04db9675256da6799bc9b5c4be to your computer and use it in GitHub Desktop.

Select an option

Save deemp/0771fc04db9675256da6799bc9b5c4be to your computer and use it in GitHub Desktop.
data Position = Position
{ row :: Int,
column :: Int
} deriving (Data)
data Segment = Segment {start::Position, end::Position} deriving (Data)
data Node a b = Node {pos::Segment, node::a, load::b} deriving (Data)
type I a = Node a ()
newtype PLicense = PLicense {cs::[I PComment]} deriving (Data)
newtype PComment = PComment {c::Text} deriving (Data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment