tree-sitter-0.1.0.0: Unstable bindings for the tree-sitter parsing library.

Safe HaskellNone
LanguageHaskell2010

TreeSitter.Importing

Synopsis

Documentation

data Number Source #

Constructors

Number 
Instances
Eq Number Source # 
Instance details

Defined in TreeSitter.Importing

Methods

(==) :: Number -> Number -> Bool #

(/=) :: Number -> Number -> Bool #

Ord Number Source # 
Instance details

Defined in TreeSitter.Importing

Show Number Source # 
Instance details

Defined in TreeSitter.Importing

withCursor :: Ptr TSNode -> (Ptr Cursor -> IO a) -> IO a Source #

step :: (Carrier sig m, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m () Source #

push :: (Carrier sig m, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m a -> m a Source #

peekNode :: (Carrier sig m, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m Node Source #

slice :: Int -> Int -> ByteString -> ByteString Source #

Return a ByteString that contains a slice of the given Source.

class Importing type' where Source #

Methods

import' :: (Alternative m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m type' Source #

Instances
Importing Text Source # 
Instance details

Defined in TreeSitter.Importing

Methods

import' :: (Alternative m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m Text Source #

Importing a => Importing [a] Source # 
Instance details

Defined in TreeSitter.Importing

Methods

import' :: (Alternative m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m [a] Source #

(Importing a, Importing b) => Importing (Either a b) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

import' :: (Alternative m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m (Either a b) Source #

(Importing a, Importing b) => Importing (a, b) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

import' :: (Alternative m, Carrier sig m, Member (Reader ByteString) sig, Member (Reader (Ptr Cursor)) sig, MonadIO m) => m (a, b) Source #

newtype MaybeC m a Source #

Constructors

MaybeC 

Fields

Instances
Monad m => Monad (MaybeC m) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

(>>=) :: MaybeC m a -> (a -> MaybeC m b) -> MaybeC m b #

(>>) :: MaybeC m a -> MaybeC m b -> MaybeC m b #

return :: a -> MaybeC m a #

fail :: String -> MaybeC m a #

Functor m => Functor (MaybeC m) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

fmap :: (a -> b) -> MaybeC m a -> MaybeC m b #

(<$) :: a -> MaybeC m b -> MaybeC m a #

Applicative m => Applicative (MaybeC m) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

pure :: a -> MaybeC m a #

(<*>) :: MaybeC m (a -> b) -> MaybeC m a -> MaybeC m b #

liftA2 :: (a -> b -> c) -> MaybeC m a -> MaybeC m b -> MaybeC m c #

(*>) :: MaybeC m a -> MaybeC m b -> MaybeC m b #

(<*) :: MaybeC m a -> MaybeC m b -> MaybeC m a #

MonadIO m => MonadIO (MaybeC m) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

liftIO :: IO a -> MaybeC m a #

Applicative m => Alternative (MaybeC m) Source # 
Instance details

Defined in TreeSitter.Importing

Methods

empty :: MaybeC m a #

(<|>) :: MaybeC m a -> MaybeC m a -> MaybeC m a #

some :: MaybeC m a -> MaybeC m [a] #

many :: MaybeC m a -> MaybeC m [a] #