Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

intricate/rune-cache

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rune-cache

rune-cache is a RuneScape 2 cache library and CLI application written in Haskell.

Note that, at the moment, rune-cache only supports read operations.

Getting Started

Usage

Reading a file from the cache:

import Control.Monad.Trans.Except
  ( runExceptT )
import Prelude hiding
  ( readFile )
import RuneScape.Cache
  ( readFile, withCache )
import RuneScape.Cache.Archive
  ( ArchiveId (..) )
import RuneScape.Cache.File
  ( FileId (..) )
import RuneScape.Cache.Group.Id
  ( fromWord32 )

main :: IO ()
main = do
  res <- runExceptT . withCache "/path/to/cache" $ \c -> do
    let aId = ArchiveId 2
        groupId = fromWord32 10
        fileId = FileId 1042
    readFile c aId groupId fileId Nothing
  ...

Documentation

Documentation can be found in the docs directory.

Building

Building the library:

cabal build rune-cache

Acknowledgments

License

Apache-2.0

About

RuneScape 2 cache library written in Haskell.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.