Skip to content

Commit

Permalink
Move Pagination module from Model to Glot
Browse files Browse the repository at this point in the history
  • Loading branch information
prasmussen committed Mar 20, 2021
1 parent e5aebac commit d45fd76
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Model/Pagination.hs → Glot/Pagination.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Model.Pagination
module Glot.Pagination
( Pagination(..)
, paginationRequired
, PageData(..)
Expand Down
2 changes: 1 addition & 1 deletion Handler/Api/Snippets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import qualified GHC.Generics as GHC
import qualified Handler.Snippets as SnippetsHandler
import qualified Handler.Snippet as SnippetHandler
import qualified Handler.UserSnippets as UserSnippetsHandler
import qualified Model.Pagination as Pagination
import qualified Glot.Pagination as Pagination
import qualified Util.Persistent as Persistent
import qualified Util.Handler as HandlerUtils
import qualified Data.Time.Format.ISO8601 as ISO8601
Expand Down
2 changes: 1 addition & 1 deletion Handler/Snippets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Handler.Snippets where
import Import
import Util.Handler (pageNo, title)
import Widget.Pagination (paginationWidget)
import qualified Model.Pagination as Pagination
import qualified Glot.Pagination as Pagination
import qualified Util.Persistent as Persistent
import qualified Util.Snippet as Snippet
import qualified Util.Multiline as Multiline
Expand Down
2 changes: 1 addition & 1 deletion Handler/UserSnippets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Handler.UserSnippets where
import Import
import Util.Handler (pageNo, titleConcat)
import Widget.Pagination (paginationWidget)
import qualified Model.Pagination as Pagination
import qualified Glot.Pagination as Pagination
import qualified Util.Persistent as Persistent
import qualified Util.Snippet as Snippet
import qualified Util.Multiline as Multiline
Expand Down
2 changes: 1 addition & 1 deletion Widget/Pagination.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Widget.Pagination (
) where

import Import
import qualified Model.Pagination as Pagination
import qualified Glot.Pagination as Pagination

paginationWidget :: Route App -> Pagination.Pagination -> Int -> [(Text, Text)] -> Widget
paginationWidget route pagination currentPage queryExtra =
Expand Down
2 changes: 1 addition & 1 deletion glot.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ library
Handler.Meta
Handler.Api.Snippets
Handler.Api.Run
Model.Pagination
Util.Shakespare
Util.Handler
Util.Multiline
Expand All @@ -49,6 +48,7 @@ library
Widget.Share
Widget.CarbonAds
Yesod.Auth.Simple
Glot.Pagination
Glot.Snippet
Glot.DockerRun
Glot.Language
Expand Down

0 comments on commit d45fd76

Please sign in to comment.