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
|
||||
|
||||
import Data.Functor.Both
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
module Category where
|
||||
|
||||
import Prologue
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||
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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DataKinds #-}
|
||||
{-# LANGUAGE DataKinds, StrictData #-}
|
||||
module Language where
|
||||
|
||||
import Data.Record
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
module Patch
|
||||
( Patch(..)
|
||||
, replacing
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
module Range where
|
||||
|
||||
import qualified Data.Char as Char
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE StrictData #-}
|
||||
module Renderer (Renderer, DiffArguments(..), Output(..), concatOutputs, toSummaryKey, Format(..)) where
|
||||
|
||||
import Data.Aeson (Value, toEncoding)
|
||||
|
@ -1,3 +1,4 @@
|
||||
{-# LANGUAGE Strict #-}
|
||||
module SES where
|
||||
|
||||
import qualified Data.Map as Map
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
|
||||
{-# LANGUAGE GeneralizedNewtypeDeriving, StrictData #-}
|
||||
module Source where
|
||||
|
||||
import Prologue hiding (uncons)
|
||||
|
@ -1,4 +1,4 @@
|
||||
{-# LANGUAGE DeriveAnyClass #-}
|
||||
{-# LANGUAGE DeriveAnyClass, StrictData #-}
|
||||
-- |
|
||||
-- Source position and span information
|
||||
-- Mostly taken from purescript's SourcePos definition.
|
||||
@ -19,11 +19,11 @@ data SourcePos = SourcePos
|
||||
{ -- |
|
||||
-- Line number
|
||||
--
|
||||
line :: !Int
|
||||
line :: Int
|
||||
-- |
|
||||
-- Column number
|
||||
--
|
||||
, column :: !Int
|
||||
, column :: Int
|
||||
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
||||
|
||||
displaySourcePos :: SourcePos -> Text
|
||||
@ -43,10 +43,10 @@ data SourceSpan = SourceSpan
|
||||
{ -- |
|
||||
-- Start of the span
|
||||
--
|
||||
spanStart :: !SourcePos
|
||||
spanStart :: SourcePos
|
||||
-- End of the span
|
||||
--
|
||||
, spanEnd :: !SourcePos
|
||||
, spanEnd :: SourcePos
|
||||
} deriving (Show, Read, Eq, Ord, Generic, Hashable)
|
||||
|
||||
displayStartEndPos :: SourceSpan -> Text
|
||||
|
Loading…
Reference in New Issue
Block a user