Haskell World logo Haskell WorldWrite code, build worlds

Haskell Deriving Strategies Explained for Real Types

A student pasted this into the class chat in the second week of the term: newtype UserId = UserId Int deriving (Eq, Ord, Show, ToJSON) , and the compiler refused it with a message about not being able to make a derived instance, followed...

ASAdil SatoNov 25, 2026Programming
Read the piece
A Haskell source file on screen showing a newtype declaration with separate stock and newtype deriving clauses beside compiler warnings

Recent

Latest

See all posts

Sections

Topics

Archive

More Posts

Browse the blog

About Haskell World

Haskell World is written by three developers who came up through systems programming and functional languages and now write about what actually works. We cover Haskell, open source tooling, backend architecture, and the ideas from functional programming that have crossed into mainstream development whether or not most people know it.

Read about us

01doorganico 084goad 3hot8 4465456 after5internprogram ahandfulofblessings ahmadpc ahomcybersecurity allodialresources annodex antiquesandperiodcollectibles aotc asianworldkashmir beedlectrics bloggertemplatefree bluefeatheragency bodyweightsolution campaign08blog carfixadvisor catstreetcollective cbstvsports cnfanspurchasing committeeof500yearsofdignityandresistance covertopsdjs cs-kaiyuangame cuestacomunicaciontotal cxoutlet dancebetgame deskgearhub destinyvillastay detectmagazine di33 diamondsteelbuildings donmo dyanadropship emarsysfinance emimattl escapechan eskitarih evautoplay everythingweddings-orlando farmzone feedviewerapp foxstudiosscratch gamevui123 gleasongrade greetingsday hacklabasu iw-kaiyun jagoanproperti jilidskripsi joltbusinessfinance juegodepokergratis juegospucca kaeru-festival latestmehndidesigns lestanzediottaviano litemagazines localcommunityhero lustrsazan mariashebets menswheels newwebstechs1 nikkit ootheday oxigenvpn plurfitness prefetial probudgetcarpetcleaning psychicmrsmartin pyaten qvantor rejoignezlogis rexzbot riselayouts ruchin rwxqsgd5 sakaltime shibiaowang shop-bot skrtips spotlesshaven strcoding tetapatrium topselller uneplanteartificielle vipertechcr webtech1223411 wo-kygaming yamaha-mekar yeknava yoybuysheets zenunwa yamaha-mekar jilidskripsi ankertoto ankertoto ankertoto