mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Turn on MonoLocalBinds for a few modules to silence warnings.
This commit is contained in:
parent
823a78aaf4
commit
b74a9bf16a
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds, GeneralizedNewtypeDeriving, TypeOperators #-}
|
{-# LANGUAGE DataKinds, GeneralizedNewtypeDeriving, MonoLocalBinds, TypeOperators #-}
|
||||||
module Data.Syntax.Algebra
|
module Data.Syntax.Algebra
|
||||||
( FAlgebra
|
( FAlgebra
|
||||||
, RAlgebra
|
, RAlgebra
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds, DeriveAnyClass, RankNTypes, TypeOperators #-}
|
{-# LANGUAGE DataKinds, DeriveAnyClass, MonoLocalBinds, RankNTypes, TypeOperators #-}
|
||||||
module Language.Python.Syntax
|
module Language.Python.Syntax
|
||||||
( assignment
|
( assignment
|
||||||
, Syntax
|
, Syntax
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds, RankNTypes, TypeOperators #-}
|
{-# LANGUAGE DataKinds, MonoLocalBinds, RankNTypes, TypeOperators #-}
|
||||||
module Language.Ruby.Syntax
|
module Language.Ruby.Syntax
|
||||||
( assignment
|
( assignment
|
||||||
, Syntax
|
, Syntax
|
||||||
@ -375,7 +375,8 @@ binary = symbol Binary >>= \ loc -> children $ expression >>= \ lexpression -> g
|
|||||||
<|> mk AnonSlash Expression.DividedBy
|
<|> mk AnonSlash Expression.DividedBy
|
||||||
<|> mk AnonPercent Expression.Modulo
|
<|> mk AnonPercent Expression.Modulo
|
||||||
<|> mk AnonStarStar Expression.Power
|
<|> mk AnonStarStar Expression.Power
|
||||||
where mk s constr = makeTerm loc <$> (symbol s *> (constr lexpression <$> expression))
|
where mk :: f :< Syntax => Grammar -> (Term -> Term -> f Term) -> Assignment
|
||||||
|
mk s constr = makeTerm loc <$> (symbol s *> (constr lexpression <$> expression))
|
||||||
mkNot s constr = makeTerm loc <$ symbol s <*> (Expression.Not <$> (makeTerm <$> location <*> (constr lexpression <$> expression)))
|
mkNot s constr = makeTerm loc <$ symbol s <*> (Expression.Not <$> (makeTerm <$> location <*> (constr lexpression <$> expression)))
|
||||||
|
|
||||||
conditional :: Assignment
|
conditional :: Assignment
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveAnyClass, MultiParamTypeClasses, RankNTypes, TypeOperators #-}
|
{-# LANGUAGE DeriveAnyClass, MonoLocalBinds, MultiParamTypeClasses, RankNTypes, TypeOperators #-}
|
||||||
module Renderer.TOC
|
module Renderer.TOC
|
||||||
( renderToCDiff
|
( renderToCDiff
|
||||||
, renderToCTerm
|
, renderToCTerm
|
||||||
|
Loading…
Reference in New Issue
Block a user