mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
10 lines
273 B
Haskell
10 lines
273 B
Haskell
module Parser where
|
|
|
|
import Prologue
|
|
import Source
|
|
|
|
-- | A function that takes a source blob and returns an annotated AST.
|
|
-- | The return is in the IO monad because some of the parsers are written in C
|
|
-- | and aren't pure.
|
|
type Parser f a = SourceBlob -> IO (Cofree f a)
|