moffy-samples-gtk3-run 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+54/−1 lines, 2 filesdep +moffy-samplesnew-component:exe:moffy_samples_gtk3
Dependencies added: moffy-samples
Files
- app/Main.hs +24/−0
- moffy-samples-gtk3-run.cabal +30/−1
+ app/Main.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# OPTIONS_GHC -Wall -fno-warn-tabs #-}++module Main (main) where++import System.Environment+import Control.Moffy.Samples.Boxes+import Control.Moffy.Samples.Boxes.Run.Gtk3+import Control.Moffy.Samples.Followbox+import Control.Moffy.Samples.FollowboxAnother qualified as A+import Control.Moffy.Samples.FollowboxOrigin qualified as O+import Control.Moffy.Samples.Followbox.Run.Gtk3++main :: IO ()+main = getArgs >>= \case+ ["boxes"] -> runBoxes boxes+ ["followbox"] -> runFollowbox "firefox" followbox+ ["followbox-another"] -> runFollowbox' "firefox" A.followbox+ ["followbox-origin"] -> runFollowbox "firefox" O.followbox+ _ -> putStrLn $+ "Usage: moffy_samples [SUBCOMMAND]\n\n" +++ "Commands are\n\tboxes\n" +++ "\tfollowbox\n\tfollowbox-another\n\tfollowbox-origin"
moffy-samples-gtk3-run.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: moffy-samples-gtk3-run-version: 0.1.0.0+version: 0.1.0.1 synopsis: Package to run moffy samples - GTK3 version description: Please see the README on GitHub at <https://github.com/YoshikuniJujo/moffy-samples-gtk3-run#readme> category: Control@@ -59,6 +59,35 @@ , containers , moffy , moffy-samples-events+ , random+ , simple-cairo+ , simple-pango+ , stm+ , text+ , time+ , type-flip+ , type-set+ , union-color+ default-language: Haskell2010++executable moffy_samples_gtk3+ main-is: Main.hs+ other-modules:+ Paths_moffy_samples_gtk3_run+ autogen-modules:+ Paths_moffy_samples_gtk3_run+ hs-source-dirs:+ app+ ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-export-lists -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N+ build-depends:+ base >=4.7 && <5+ , c-enum+ , c-struct+ , containers+ , moffy+ , moffy-samples+ , moffy-samples-events+ , moffy-samples-gtk3-run , random , simple-cairo , simple-pango