Add a data structure, based on the zipper comonad, which provides support for multiple levels, each of which is its own entity map. The current level is provided by coreturn, which the `entities` lens has been updated to use. Nothing currently supports going up or down levels yet - that's coming next.
		
			
				
	
	
		
			324 lines
		
	
	
	
		
			8.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			324 lines
		
	
	
	
		
			8.1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| cabal-version: 1.12
 | |
| 
 | |
| -- This file has been generated from package.yaml by hpack version 0.31.2.
 | |
| --
 | |
| -- see: https://github.com/sol/hpack
 | |
| --
 | |
| -- hash: eb0a7cd56cc2ea885be582c8ea7113a5f50f96a8d1b12ed27ca1a0271a45ad03
 | |
| 
 | |
| name:           xanthous
 | |
| version:        0.1.0.0
 | |
| synopsis:       A WIP TUI RPG
 | |
| description:    Please see the README on GitHub at <https://github.com/glittershark/xanthous>
 | |
| category:       Game
 | |
| homepage:       https://github.com/glittershark/xanthous#readme
 | |
| bug-reports:    https://github.com/glittershark/xanthous/issues
 | |
| author:         Griffin Smith
 | |
| maintainer:     root@gws.fyi
 | |
| copyright:      2019 Griffin Smith
 | |
| license:        GPL-3
 | |
| license-file:   LICENSE
 | |
| build-type:     Simple
 | |
| extra-source-files:
 | |
|     README.org
 | |
| 
 | |
| source-repository head
 | |
|   type: git
 | |
|   location: https://github.com/glittershark/xanthous
 | |
| 
 | |
| library
 | |
|   exposed-modules:
 | |
|       Data.Aeson.Generic.DerivingVia
 | |
|       Main
 | |
|       Xanthous.AI.Gormlak
 | |
|       Xanthous.App
 | |
|       Xanthous.Command
 | |
|       Xanthous.Data
 | |
|       Xanthous.Data.EntityChar
 | |
|       Xanthous.Data.EntityMap
 | |
|       Xanthous.Data.EntityMap.Graphics
 | |
|       Xanthous.Data.Levels
 | |
|       Xanthous.Data.VectorBag
 | |
|       Xanthous.Entities.Character
 | |
|       Xanthous.Entities.Creature
 | |
|       Xanthous.Entities.Creature.Hippocampus
 | |
|       Xanthous.Entities.Draw.Util
 | |
|       Xanthous.Entities.Entities
 | |
|       Xanthous.Entities.Environment
 | |
|       Xanthous.Entities.Item
 | |
|       Xanthous.Entities.Raws
 | |
|       Xanthous.Entities.RawTypes
 | |
|       Xanthous.Game
 | |
|       Xanthous.Game.Arbitrary
 | |
|       Xanthous.Game.Draw
 | |
|       Xanthous.Game.Lenses
 | |
|       Xanthous.Game.Prompt
 | |
|       Xanthous.Game.State
 | |
|       Xanthous.Generators
 | |
|       Xanthous.Generators.CaveAutomata
 | |
|       Xanthous.Generators.Dungeon
 | |
|       Xanthous.Generators.LevelContents
 | |
|       Xanthous.Generators.Util
 | |
|       Xanthous.Messages
 | |
|       Xanthous.Monad
 | |
|       Xanthous.Orphans
 | |
|       Xanthous.Prelude
 | |
|       Xanthous.Random
 | |
|       Xanthous.Resource
 | |
|       Xanthous.Util
 | |
|       Xanthous.Util.Comonad
 | |
|       Xanthous.Util.Graph
 | |
|       Xanthous.Util.Graphics
 | |
|       Xanthous.Util.Inflection
 | |
|       Xanthous.Util.JSON
 | |
|       Xanthous.Util.Optparse
 | |
|       Xanthous.Util.QuickCheck
 | |
|   other-modules:
 | |
|       Paths_xanthous
 | |
|   hs-source-dirs:
 | |
|       src
 | |
|   default-extensions: BlockArguments ConstraintKinds DataKinds DeriveAnyClass DeriveGeneric DerivingStrategies DerivingVia FlexibleContexts FlexibleInstances FunctionalDependencies GADTSyntax GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiWayIf NoImplicitPrelude NoStarIsType OverloadedStrings PolyKinds RankNTypes ScopedTypeVariables TupleSections TypeApplications TypeFamilies TypeOperators
 | |
|   ghc-options: -Wall
 | |
|   build-depends:
 | |
|       JuicyPixels
 | |
|     , MonadRandom
 | |
|     , QuickCheck
 | |
|     , Rasterific
 | |
|     , aeson
 | |
|     , array
 | |
|     , base
 | |
|     , brick
 | |
|     , checkers
 | |
|     , classy-prelude
 | |
|     , comonad
 | |
|     , comonad-extras
 | |
|     , constraints
 | |
|     , containers
 | |
|     , data-default
 | |
|     , deepseq
 | |
|     , directory
 | |
|     , fgl
 | |
|     , fgl-arbitrary
 | |
|     , file-embed
 | |
|     , filepath
 | |
|     , generic-arbitrary
 | |
|     , generic-lens
 | |
|     , generic-monoid
 | |
|     , groups
 | |
|     , hgeometry
 | |
|     , hgeometry-combinatorial
 | |
|     , lens
 | |
|     , linear
 | |
|     , megaparsec
 | |
|     , mtl
 | |
|     , optparse-applicative
 | |
|     , pointed
 | |
|     , quickcheck-instances
 | |
|     , quickcheck-text
 | |
|     , random
 | |
|     , random-extras
 | |
|     , random-fu
 | |
|     , random-source
 | |
|     , raw-strings-qq
 | |
|     , reflection
 | |
|     , semigroupoids
 | |
|     , stache
 | |
|     , streams
 | |
|     , text
 | |
|     , text-zipper
 | |
|     , tomland
 | |
|     , vector
 | |
|     , vty
 | |
|     , yaml
 | |
|     , zlib
 | |
|   default-language: Haskell2010
 | |
| 
 | |
| executable xanthous
 | |
|   main-is: Main.hs
 | |
|   other-modules:
 | |
|       Data.Aeson.Generic.DerivingVia
 | |
|       Xanthous.AI.Gormlak
 | |
|       Xanthous.App
 | |
|       Xanthous.Command
 | |
|       Xanthous.Data
 | |
|       Xanthous.Data.EntityChar
 | |
|       Xanthous.Data.EntityMap
 | |
|       Xanthous.Data.EntityMap.Graphics
 | |
|       Xanthous.Data.Levels
 | |
|       Xanthous.Data.VectorBag
 | |
|       Xanthous.Entities.Character
 | |
|       Xanthous.Entities.Creature
 | |
|       Xanthous.Entities.Creature.Hippocampus
 | |
|       Xanthous.Entities.Draw.Util
 | |
|       Xanthous.Entities.Entities
 | |
|       Xanthous.Entities.Environment
 | |
|       Xanthous.Entities.Item
 | |
|       Xanthous.Entities.Raws
 | |
|       Xanthous.Entities.RawTypes
 | |
|       Xanthous.Game
 | |
|       Xanthous.Game.Arbitrary
 | |
|       Xanthous.Game.Draw
 | |
|       Xanthous.Game.Lenses
 | |
|       Xanthous.Game.Prompt
 | |
|       Xanthous.Game.State
 | |
|       Xanthous.Generators
 | |
|       Xanthous.Generators.CaveAutomata
 | |
|       Xanthous.Generators.Dungeon
 | |
|       Xanthous.Generators.LevelContents
 | |
|       Xanthous.Generators.Util
 | |
|       Xanthous.Messages
 | |
|       Xanthous.Monad
 | |
|       Xanthous.Orphans
 | |
|       Xanthous.Prelude
 | |
|       Xanthous.Random
 | |
|       Xanthous.Resource
 | |
|       Xanthous.Util
 | |
|       Xanthous.Util.Comonad
 | |
|       Xanthous.Util.Graph
 | |
|       Xanthous.Util.Graphics
 | |
|       Xanthous.Util.Inflection
 | |
|       Xanthous.Util.JSON
 | |
|       Xanthous.Util.Optparse
 | |
|       Xanthous.Util.QuickCheck
 | |
|       Paths_xanthous
 | |
|   hs-source-dirs:
 | |
|       src
 | |
|   default-extensions: BlockArguments ConstraintKinds DataKinds DeriveAnyClass DeriveGeneric DerivingStrategies DerivingVia FlexibleContexts FlexibleInstances FunctionalDependencies GADTSyntax GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiWayIf NoImplicitPrelude NoStarIsType OverloadedStrings PolyKinds RankNTypes ScopedTypeVariables TupleSections TypeApplications TypeFamilies TypeOperators
 | |
|   ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -O2
 | |
|   build-depends:
 | |
|       JuicyPixels
 | |
|     , MonadRandom
 | |
|     , QuickCheck
 | |
|     , Rasterific
 | |
|     , aeson
 | |
|     , array
 | |
|     , base
 | |
|     , brick
 | |
|     , checkers
 | |
|     , classy-prelude
 | |
|     , comonad
 | |
|     , comonad-extras
 | |
|     , constraints
 | |
|     , containers
 | |
|     , data-default
 | |
|     , deepseq
 | |
|     , directory
 | |
|     , fgl
 | |
|     , fgl-arbitrary
 | |
|     , file-embed
 | |
|     , filepath
 | |
|     , generic-arbitrary
 | |
|     , generic-lens
 | |
|     , generic-monoid
 | |
|     , groups
 | |
|     , hgeometry
 | |
|     , hgeometry-combinatorial
 | |
|     , lens
 | |
|     , linear
 | |
|     , megaparsec
 | |
|     , mtl
 | |
|     , optparse-applicative
 | |
|     , pointed
 | |
|     , quickcheck-instances
 | |
|     , quickcheck-text
 | |
|     , random
 | |
|     , random-extras
 | |
|     , random-fu
 | |
|     , random-source
 | |
|     , raw-strings-qq
 | |
|     , reflection
 | |
|     , semigroupoids
 | |
|     , stache
 | |
|     , streams
 | |
|     , text
 | |
|     , text-zipper
 | |
|     , tomland
 | |
|     , vector
 | |
|     , vty
 | |
|     , xanthous
 | |
|     , yaml
 | |
|     , zlib
 | |
|   default-language: Haskell2010
 | |
| 
 | |
| test-suite test
 | |
|   type: exitcode-stdio-1.0
 | |
|   main-is: Spec.hs
 | |
|   other-modules:
 | |
|       Test.Prelude
 | |
|       Xanthous.Data.EntityCharSpec
 | |
|       Xanthous.Data.EntityMap.GraphicsSpec
 | |
|       Xanthous.Data.EntityMapSpec
 | |
|       Xanthous.Data.LevelsSpec
 | |
|       Xanthous.DataSpec
 | |
|       Xanthous.Entities.RawsSpec
 | |
|       Xanthous.GameSpec
 | |
|       Xanthous.Generators.UtilSpec
 | |
|       Xanthous.MessageSpec
 | |
|       Xanthous.OrphansSpec
 | |
|       Xanthous.Util.GraphicsSpec
 | |
|       Xanthous.Util.GraphSpec
 | |
|       Xanthous.Util.InflectionSpec
 | |
|       Xanthous.UtilSpec
 | |
|       Paths_xanthous
 | |
|   hs-source-dirs:
 | |
|       test
 | |
|   default-extensions: BlockArguments ConstraintKinds DataKinds DeriveAnyClass DeriveGeneric DerivingStrategies DerivingVia FlexibleContexts FlexibleInstances FunctionalDependencies GADTSyntax GeneralizedNewtypeDeriving KindSignatures LambdaCase MultiWayIf NoImplicitPrelude NoStarIsType OverloadedStrings PolyKinds RankNTypes ScopedTypeVariables TupleSections TypeApplications TypeFamilies TypeOperators
 | |
|   ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N -O0
 | |
|   build-depends:
 | |
|       JuicyPixels
 | |
|     , MonadRandom
 | |
|     , QuickCheck
 | |
|     , Rasterific
 | |
|     , aeson
 | |
|     , array
 | |
|     , base
 | |
|     , brick
 | |
|     , checkers
 | |
|     , classy-prelude
 | |
|     , comonad
 | |
|     , comonad-extras
 | |
|     , constraints
 | |
|     , containers
 | |
|     , data-default
 | |
|     , deepseq
 | |
|     , directory
 | |
|     , fgl
 | |
|     , fgl-arbitrary
 | |
|     , file-embed
 | |
|     , filepath
 | |
|     , generic-arbitrary
 | |
|     , generic-lens
 | |
|     , generic-monoid
 | |
|     , groups
 | |
|     , hgeometry
 | |
|     , hgeometry-combinatorial
 | |
|     , lens
 | |
|     , lens-properties
 | |
|     , linear
 | |
|     , megaparsec
 | |
|     , mtl
 | |
|     , optparse-applicative
 | |
|     , pointed
 | |
|     , quickcheck-instances
 | |
|     , quickcheck-text
 | |
|     , random
 | |
|     , random-extras
 | |
|     , random-fu
 | |
|     , random-source
 | |
|     , raw-strings-qq
 | |
|     , reflection
 | |
|     , semigroupoids
 | |
|     , stache
 | |
|     , streams
 | |
|     , tasty
 | |
|     , tasty-hunit
 | |
|     , tasty-quickcheck
 | |
|     , text
 | |
|     , text-zipper
 | |
|     , tomland
 | |
|     , vector
 | |
|     , vty
 | |
|     , xanthous
 | |
|     , yaml
 | |
|     , zlib
 | |
|   default-language: Haskell2010
 |