1
+ {-# LANGUAGE BangPatterns #-}
1
2
{-# LANGUAGE DeriveDataTypeable #-}
2
3
{-# LANGUAGE DeriveGeneric #-}
3
4
{-# LANGUAGE LambdaCase #-}
@@ -16,7 +17,7 @@ import qualified Data.Aeson as Aeson
16
17
import Data.Aeson ((.=) , (.:) )
17
18
import Data.Acid (Query , Update , makeAcidic )
18
19
import qualified Data.HashMap.Strict as HashMap
19
- import qualified Data.Map as Map
20
+ import qualified Data.Map.Strict as Map
20
21
import Data.Monoid (Sum (.. ))
21
22
import qualified Data.Text as T
22
23
import qualified Data.Text.Encoding as T
@@ -45,13 +46,13 @@ import Distribution.Server.Framework.MemSize (MemSize,
45
46
-- | Basic information about a package. These values are
46
47
-- used in the `/package/:packagename` JSON endpoint
47
48
data PackageBasicDescription = PackageBasicDescription
48
- { pbd_license :: License
49
- , pbd_copyright :: T. Text
50
- , pbd_synopsis :: T. Text
51
- , pbd_description :: T. Text
52
- , pbd_author :: T. Text
53
- , pbd_homepage :: T. Text
54
- , pbd_metadata_revision :: Int
49
+ { pbd_license :: ! License
50
+ , pbd_copyright :: ! T. Text
51
+ , pbd_synopsis :: ! T. Text
52
+ , pbd_description :: ! T. Text
53
+ , pbd_author :: ! T. Text
54
+ , pbd_homepage :: ! T. Text
55
+ , pbd_metadata_revision :: ! Int
55
56
} deriving (Eq , Show , Generic )
56
57
57
58
instance SafeCopy PackageBasicDescription where
0 commit comments