Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,327
    • Issues 4,327
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 390
    • Merge Requests 390
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #11442

Closed
Open
Opened Jan 16, 2016 by Icelandjack@IcelandjackReporter

Segfault when showing (undefined :: Type)

This comment made me wonder about the relationship between Void and Type, id :: Void -> Void and id :: Type -> Type:

#11311 (closed)?replyto=3##11442 (closed)

{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-

import Data.Kind (Type)

instance Show Type where
  show _ = "..."

main = print (undefined :: Type)

running gives:

$ runghc --version
runghc 8.1.20160113
$ runghc -ignore-dot-ghci Segfault.hs 
Segmentation fault (core dumped)

Verbose log attached.

Edited Mar 10, 2019 by Icelandjack
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#11442