Skip to content

Commit

Permalink
Merge packages into one (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
toku-sa-n authored Apr 21, 2024
1 parent f1c37cf commit 63f06c2
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 95 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion bin/gimlight.cabal → gimlight.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 15,7 @@ author: Hiroki Tokunaga
maintainer: [email protected]
copyright: 2024 Hiroki Tokunaga
license: AGPL-3.0-or-later
license-file: LICENSE
build-type: Simple

source-repository head
Expand All @@ -23,6 24,7 @@ source-repository head

library
exposed-modules:
Gimlight.Logic.GameModel
Gimlight.UI
other-modules:
Paths_gimlight
Expand All @@ -32,7 34,6 @@ library
src
build-depends:
base >=4.7 && <5
, gimlight-logic
, monomer
, text
default-language: Haskell2010
Expand Down
49 changes: 0 additions & 49 deletions logic/gimlight-logic.cabal

This file was deleted.

27 changes: 0 additions & 27 deletions logic/package.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions logic/test/Spec.hs

This file was deleted.

1 change: 0 additions & 1 deletion bin/package.yaml → package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 17,6 @@ dependencies:
library:
source-dirs: src
dependencies:
- gimlight-logic
- monomer
- text

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,7 @@
{-# LANGUAGE Safe #-}
{-# LANGUAGE StandaloneKindSignatures #-}

module Gimlight.GameModel
module Gimlight.Logic.GameModel
( GameModel
, initGameModel
, increment
Expand Down
17 changes: 9 additions & 8 deletions bin/src/Gimlight/UI.hs → src/Gimlight/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 6,15 @@ module Gimlight.UI
( start
) where

import Data.Text (pack)
import Gimlight.GameModel (GameModel, getCount, increment,
initGameModel)
import Monomer (AppConfig, AppEventResponse,
EventResponse (Model), WidgetEnv,
WidgetNode, appFontDef, appTheme,
darkTheme, keystroke, label, startApp)
import Prelude (IO, Show (show), ($), (<>))
import Data.Text (pack)
import Gimlight.Logic.GameModel (GameModel, getCount, increment,
initGameModel)
import Monomer (AppConfig, AppEventResponse,
EventResponse (Model), WidgetEnv,
WidgetNode, appFontDef, appTheme,
darkTheme, keystroke, label,
startApp)
import Prelude (IO, Show (show), ($), (<>))

handleEvent ::
WidgetEnv GameModel ()
Expand Down
3 changes: 1 addition & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,8 1,7 @@
resolver: lts-22.15

packages:
- bin
- logic
- .

# As most of packages are inferred as `unsafe`, building with `-Wunsafe` is
# almost impossible.
Expand Down
File renamed without changes.

0 comments on commit 63f06c2

Please sign in to comment.