---
title: "Discussion on \"Type Safety in Swift: Haskell-style Newtypes with Phantom Types\" | Hashnode"
description: "Discussion on \"Type Safety in Swift: Haskell-style Newtypes with Phantom Types\". In software engineering, \"primitive obsession\" describes a scenario where domain-specific concepts are represented by general types like strings, integers, or timestamps. This lack of specificity ofte"
url: "https://hashnode.com/posts/type-safety-in-swift-haskell-style-newtypes-with-phantom-types/69addac886766ac3a6558309"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Type Safety in Swift: Haskell-style Newtypes with Phantom Types](https://erkek.in/type-safety-in-swift-haskell-style-newtypes-with-phantom-types?utm_source=hashnode&utm_medium=feed)

In software engineering, "primitive obsession" describes a scenario where domain-specific concepts are represented by general types like strings, integers, or timestamps. This lack of specificity ofte

Mar 8 · 4 min read · erkek.in  
Updated May 3  
Read the article

## Written by

[Erk Ekin](https://hashnode.com/@erkekin)

@erkekin · London

  
[View profile](https://hashnode.com/@erkekin)

iOS, swift

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
