Series: haskell
haskell
11 lines
· Updated 2026-02-03
Adding.hs
haskell/Adding.hs
module Adding where
-- | Adding one.
--
-- >>> addOne 5
-- 6
--
-- >>> addOne 100
-- 101
addOne :: Int -> Int
addOne x = x + 1
Related articles
haskell
haskell
Updated 2026-02-03
Area.hs
Area.hs — haskell source code from the haskell learning materials (haskell/Area.hs).
Read article →
haskell
haskell
Updated 2026-02-03
Chess.hs
Chess.hs — haskell source code from the haskell learning materials (haskell/Chess.hs).
Read article →
haskell
haskell
Updated 2026-02-03
ChessGraphics.hs
ChessGraphics.hs — haskell source code from the haskell learning materials (haskell/ChessGraphics.hs).
Read article →
haskell
haskell
Updated 2026-02-03
Examples.hs
Examples.hs — haskell source code from the haskell learning materials (haskell/Examples.hs).
Read article →
haskell
haskell
Updated 2026-02-03
Fibonacci.hs
Fibonacci.hs — haskell source code from the haskell learning materials (haskell/Fibonacci.hs).
Read article →
haskell
haskell
Updated 2026-02-03
GPACalculator.hs
GPACalculator.hs — haskell source code from the haskell learning materials (haskell/GPACalculator.hs).
Read article →