They’re not the same when the second argument is negative:
2 `mod` (-3) == -1 2 `rem` (-3) == 2
Related Posts:
- Understanding the functions elem and isInfixOf
- Haskell – parse error on input `|’
- absolute values in Haskell
- Reverse a list in haskell
- Haskell Merge Sort
- How to fix “variable not in scope” error in GHCI?
- Division in Haskell
- What does the “Just” syntax mean in Haskell?
- How to split a string in Haskell?
- Haskell pattern matching – what is it?
- What does Cons and :-: mean in Haskell?
- Using map in Haskell
- Learning Haskell: How to remove an item from a List in Haskell
- Why is the minimalist, example Haskell quicksort not a “true” quicksort?
- Error haskell: not in scope. What does that mean?
- How do I use the filter function in Haskell?
- Haskell: Converting Int to String
- Insertion sort in Haskell