Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
smallhadroncollider committed Jan 12, 2018
2 parents 74f7b1d + 4471850 commit 47a5b5f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ There are bottles (binaries) available for High Sierra and Sierra. If these are

### Binaries

[A binary is available for Mac and Linux](https://github.com/smallhadroncollider/taskell/releases). Download it and copy it to a directory in your `$PATH` (e.g. `/usr/local/bin` or `/usr/bin`). Then run `taskell` in a project directory to get started.
[A binary is available for Mac and Linux](https://github.com/smallhadroncollider/taskell/releases). Download it and copy it to a directory in your `$PATH` (e.g. `/usr/local/bin` or `/usr/bin`).

## Running

Expand Down
5 changes: 3 additions & 2 deletions src/Data/Taskell/List.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import GHC.Generics (Generic)
import Data.Aeson (FromJSON, ToJSON)

import Prelude hiding (splitAt, filter)
import Data.Sequence (Seq, (|>), (!?), (><), fromList, deleteAt, splitAt, filter)
import Data.Sequence (Seq, (|>), (!?), (><), deleteAt, splitAt, filter)
import qualified Data.Taskell.Seq as S

import Data.Taskell.Task (Task, blank, contains)
Expand All @@ -33,9 +33,10 @@ updateTitle :: List -> String -> List
updateTitle ls s = ls { title = s }

newAt :: Int -> List -> List
newAt i l = l { tasks = a >< fromList [blank] >< b }
newAt i l = l { tasks = (a |> blank) >< b }
where (a, b) = splitAt i $ tasks l


append :: Task -> List -> List
append t l = l { tasks = tasks l |> t }

Expand Down
2 changes: 1 addition & 1 deletion src/Flow/State.hs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ addToListAt d s = do
l <- getList s
let i = getIndex s + d
let ls = newAt i l
return $ setList (setIndex s i) ls
return $ fixIndex $ setList (setIndex s i) ls

above :: Stateful
above = addToListAt 0
Expand Down
2 changes: 1 addition & 1 deletion taskell.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: taskell
version: 0.9.0.0
version: 0.9.2.0
-- synopsis: A CLI task manager, written in Haskell
-- description: Allows you to create version controlled task lists
homepage: https://github.com/smallhadroncollider/taskell#readme
Expand Down

0 comments on commit 47a5b5f

Please sign in to comment.