WIP: Make HAL formatter strict.

#186 

Just playing around with some code...
maybe better ``resource_id``?