1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00

Add strictness annotations to a few types

This commit is contained in:
joshvera 2016-10-12 16:34:12 -04:00
parent df2dcbd670
commit 09304a5df2
11 changed files with 15 additions and 8 deletions

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
module Arguments (Arguments(..), CmdLineOptions(..), DiffMode(..), ExtraArg(..), programArguments, args) where
import Data.Functor.Both

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
module Category where
import Prologue

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.Functor.Both (Both,both, runBothWith, fst, snd, module X) where

View File

@ -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

View File

@ -1,4 +1,4 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DataKinds, StrictData #-}
module Language where
import Data.Record

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
module Patch
( Patch(..)
, replacing

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
module Range where
import qualified Data.Char as Char

View File

@ -1,3 +1,4 @@
{-# LANGUAGE StrictData #-}
module Renderer (Renderer, DiffArguments(..), Output(..), concatOutputs, toSummaryKey, Format(..)) where
import Data.Aeson (Value, toEncoding)

View File

@ -1,3 +1,4 @@
{-# LANGUAGE Strict #-}
module SES where
import qualified Data.Map as Map

View File

@ -1,4 +1,4 @@
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, StrictData #-}
module Source where
import Prologue hiding (uncons)

View File

@ -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