mirror of
https://github.com/github/semantic.git
synced 2024-12-01 09:15:01 +03:00
Add strictness annotations to a few types
This commit is contained in:
parent
df2dcbd670
commit
09304a5df2
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
module Arguments (Arguments(..), CmdLineOptions(..), DiffMode(..), ExtraArg(..), programArguments, args) where
|
module Arguments (Arguments(..), CmdLineOptions(..), DiffMode(..), ExtraArg(..), programArguments, args) where
|
||||||
|
|
||||||
import Data.Functor.Both
|
import Data.Functor.Both
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
module Category where
|
module Category where
|
||||||
|
|
||||||
import Prologue
|
import Prologue
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||||
module Data.Functor.Both (Both,both, runBothWith, fst, snd, module X) where
|
module Data.Functor.Both (Both,both, runBothWith, fst, snd, module X) where
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds, TypeFamilies, ScopedTypeVariables, DeriveAnyClass #-}
|
{-# LANGUAGE DataKinds, TypeFamilies, ScopedTypeVariables, DeriveAnyClass, StrictData #-}
|
||||||
|
|
||||||
module DiffSummary (diffSummaries, DiffSummary(..), DiffInfo(..), diffToDiffSummaries, isBranchInfo, isErrorSummary, JSONSummary(..)) where
|
module DiffSummary (diffSummaries, DiffSummary(..), DiffInfo(..), diffToDiffSummaries, isBranchInfo, isErrorSummary, JSONSummary(..)) where
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DataKinds #-}
|
{-# LANGUAGE DataKinds, StrictData #-}
|
||||||
module Language where
|
module Language where
|
||||||
|
|
||||||
import Data.Record
|
import Data.Record
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
module Patch
|
module Patch
|
||||||
( Patch(..)
|
( Patch(..)
|
||||||
, replacing
|
, replacing
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
module Range where
|
module Range where
|
||||||
|
|
||||||
import qualified Data.Char as Char
|
import qualified Data.Char as Char
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE StrictData #-}
|
||||||
module Renderer (Renderer, DiffArguments(..), Output(..), concatOutputs, toSummaryKey, Format(..)) where
|
module Renderer (Renderer, DiffArguments(..), Output(..), concatOutputs, toSummaryKey, Format(..)) where
|
||||||
|
|
||||||
import Data.Aeson (Value, toEncoding)
|
import Data.Aeson (Value, toEncoding)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{-# LANGUAGE Strict #-}
|
||||||
module SES where
|
module SES where
|
||||||
|
|
||||||
import qualified Data.Map as Map
|
import qualified Data.Map as Map
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
{-# LANGUAGE GeneralizedNewtypeDeriving, StrictData #-}
|
||||||
module Source where
|
module Source where
|
||||||
|
|
||||||
import Prologue hiding (uncons)
|
import Prologue hiding (uncons)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{-# LANGUAGE DeriveAnyClass #-}
|
{-# LANGUAGE DeriveAnyClass, StrictData #-}
|
||||||
-- |
|
-- |
|
||||||
-- Source position and span information
|
-- Source position and span information
|
||||||
-- Mostly taken from purescript's SourcePos definition.
|
-- Mostly taken from purescript's SourcePos definition.
|
||||||
@ -19,11 +19,11 @@ data SourcePos = SourcePos
|
|||||||
{ -- |
|
{ -- |
|
||||||
-- Line number
|
-- Line number
|
||||||
--
|
--
|
||||||
line :: !Int
|
line :: Int
|
||||||
-- |
|
-- |
|
||||||
-- Column number
|
-- Column number
|
||||||
--
|
--
|
||||||
, column :: !Int
|
, column :: Int
|
||||||
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
||||||
|
|
||||||
displaySourcePos :: SourcePos -> Text
|
displaySourcePos :: SourcePos -> Text
|
||||||
@ -43,10 +43,10 @@ data SourceSpan = SourceSpan
|
|||||||
{ -- |
|
{ -- |
|
||||||
-- Start of the span
|
-- Start of the span
|
||||||
--
|
--
|
||||||
spanStart :: !SourcePos
|
spanStart :: SourcePos
|
||||||
-- End of the span
|
-- End of the span
|
||||||
--
|
--
|
||||||
, spanEnd :: !SourcePos
|
, spanEnd :: SourcePos
|
||||||
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
||||||
|
|
||||||
displayStartEndPos :: SourceSpan -> Text
|
displayStartEndPos :: SourceSpan -> Text
|
||||||
|
Loading…
Reference in New Issue
Block a user