data-effects-th-0.4.2.1: Template Haskell utilities for the data-effects library.
Copyright(c) 2023-2025 Sayo contributors
(c) 2010-2011 Patrick Bahr Tom Hvitved
(c) 2020 Michael Szvetits
LicenseMPL-2.0 (see the LICENSE file) AND BSD-3-Clause
Maintainerymdfield@outlook.jp
Safe HaskellNone
LanguageGHC2021

Data.Effect.TH.Internal

Description

 
Synopsis

Documentation

data EffectInfo Source #

Constructors

EffectInfo 

Fields

data EffectConf Source #

Instances

Instances details
Default EffectConf Source # 
Instance details

Defined in Data.Effect.TH.Internal

Methods

def :: EffectConf #

data DataInfo Source #

A reified information of a datatype.

Constructors

DataInfo 

Utility functions

tyVarName :: TyVarBndr a -> Name Source #

Pures the name of a type variable.

tyVarType :: TyVarBndr a -> Type Source #

Converts a type variable to a type.

unkindTypeRec :: Type -> Type Source #

Throws away all kind information from a type.

unkindTyVar :: TyVarBndr a -> TyVarBndr a Source #

Throws away the kind information of a type variable.

occurs :: Name -> Type -> Bool Source #

Checks if a name m appears somewhere in a type.

analyzeData :: Info -> Maybe DataInfo Source #

This function abstracts away newtype declaration, it turns them into data declarations.