mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-01 20:44:15 +00:00
mass clean up of warnings, hints, errors
This commit is contained in:
@@ -38,21 +38,54 @@ import Database.Esqueleto.Experimental
|
||||
, (||.)
|
||||
)
|
||||
import qualified Database.Persist as P
|
||||
import Database.Persist.Postgresql
|
||||
hiding ( (==.)
|
||||
, getJust
|
||||
, selectSource
|
||||
, (||.)
|
||||
import Database.Persist.Postgresql ( ConnectionPool
|
||||
, Entity(entityKey, entityVal)
|
||||
, PersistEntity(Key)
|
||||
, SqlBackend
|
||||
, runSqlPool
|
||||
)
|
||||
import Handler.Types.Marketplace ( PackageDependencyMetadata(..) )
|
||||
import Lib.Types.AppIndex ( PkgId )
|
||||
import Lib.Types.Emver ( Version )
|
||||
import Model
|
||||
import Startlude hiding ( (%)
|
||||
, from
|
||||
, groupBy
|
||||
, on
|
||||
, yield
|
||||
import Model ( Category
|
||||
, EntityField
|
||||
( CategoryId
|
||||
, CategoryName
|
||||
, PkgCategoryCategoryId
|
||||
, PkgCategoryPkgId
|
||||
, PkgDependencyDepId
|
||||
, PkgDependencyPkgId
|
||||
, PkgDependencyPkgVersion
|
||||
, PkgRecordId
|
||||
, VersionRecordDescLong
|
||||
, VersionRecordDescShort
|
||||
, VersionRecordPkgId
|
||||
, VersionRecordTitle
|
||||
, VersionRecordUpdatedAt
|
||||
)
|
||||
, Key(PkgRecordKey, unPkgRecordKey)
|
||||
, PkgCategory
|
||||
, PkgDependency
|
||||
, PkgRecord
|
||||
, VersionRecord(versionRecordNumber, versionRecordPkgId)
|
||||
)
|
||||
import Startlude ( ($)
|
||||
, ($>)
|
||||
, (.)
|
||||
, (<$>)
|
||||
, Applicative(pure)
|
||||
, Down(Down)
|
||||
, Eq((==))
|
||||
, Functor(fmap)
|
||||
, Maybe(..)
|
||||
, Monad
|
||||
, MonadIO
|
||||
, ReaderT
|
||||
, Text
|
||||
, headMay
|
||||
, lift
|
||||
, snd
|
||||
, sortOn
|
||||
)
|
||||
|
||||
type CategoryTitle = Text
|
||||
|
||||
Reference in New Issue
Block a user