mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
add parse case for mispelling; clean up imports
This commit is contained in:
@@ -19,7 +19,7 @@ import Database.Esqueleto.Experimental (
|
||||
)
|
||||
import Foundation (Handler, RegistryCtx (appSettings))
|
||||
import Handler.Package.V0.ReleaseNotes (ReleaseNotes (..))
|
||||
import Handler.Util (queryParamAs, tickleMAU, getArchQuery)
|
||||
import Handler.Util (queryParamAs, getArchQuery)
|
||||
import Lib.Types.Emver (Version, parseVersion)
|
||||
import Model (EntityField (..), OsVersion (..))
|
||||
import Orphans.Emver ()
|
||||
|
||||
@@ -99,6 +99,7 @@ instance Read OsArch where
|
||||
readsPrec _ "x86_64" = [(X86_64, "")]
|
||||
readsPrec _ "aarch64" = [(AARCH64, "")]
|
||||
readsPrec _ "raspberrypi" = [(RASPBERRYPI, "")]
|
||||
readsPrec _ "rasberrypi" = [(RASPBERRYPI, "")]
|
||||
readsPrec _ _ = []
|
||||
instance PersistField OsArch where
|
||||
toPersistValue = PersistText . show
|
||||
|
||||
Reference in New Issue
Block a user